wifly shield configuration adhoc

hello guys i try to configuration the shield with this settings:

set wlan ssid ARDUINO

set wlan join 4

set wlan chan 1

set ip adress 169.254.1.1

set ip netmask 255.255.0.0

set ip dhcp 0

set ip protocol 1

set ip host 169.254.1.100

set ip remote 9000

set ip local 8000

save

reboot

Now my phone my computer ecc find the new network but i can’t do it nothing because i can’t enter.

I try the telnet comunication but doesn’t work :frowning:

somebody help me?

i try this sketch but nothing

/*


#include "WiFly.h" // Include la libreria Wifly

Server server(80);
char ssid[] = "arduino";  //nome della rete wireless
int ledPin = 2;  // LED pin

String readString = String(50); //stringa 
boolean LEDON = false; //LED status flag
int pwm_a = 3;  //PWM control for motor outputs 1 and 2 is on digital pin 3
int pwm_b = 11;  //PWM control for motor outputs 3 and 4 is on digital pin 11
int dir_a = 12;  //direction control for motor outputs 1 and 2 is on digital pin 12
int dir_b = 13;  //direction control for motor outputs 3 and 4 is on digital pin 13



void setup() {
  //Set pin to output
  pinMode(ledPin, OUTPUT); 
    pinMode(pwm_a, OUTPUT);  //Set control pins to be outputs
  pinMode(pwm_b, OUTPUT);
  pinMode(dir_a, OUTPUT);
  pinMode(dir_b, OUTPUT);
  

  WiFly.begin();

 

  Serial.begin(9600);
  Serial.print("IP: ");
  Serial.println(WiFly.ip());

  server.begin();
}




void loop(){
// Crea la connessione con il client
Client client = server.available();
  if (client) {
    while (client.connected()) {
   if (client.available()) {
    char c = client.read();
    //legge la richiesta dal client
    if (readString.length() < 30) 
      {
        //salva i caratteri letti in una stringa 
        readString +=c;
      }  
        //riporta la stringa su serial monitor
        Serial.print(c);
        
        //verifica che la richiesta sia terminata
        if (c == '\n') {
          
        //verifica se sulla richiesta è presente l'attivazione del LED

  if(readString.startsWith("L=LED_ON", 6))
           {
             //led acceso
          digitalWrite(dir_a, LOW);  //Set motor direction, 1 low, 2 high
  digitalWrite(dir_b, LOW);  //Set motor direction, 3 high, 4 low
  
  delay(1000);
  
  analogWrite(pwm_a, 255);  //set both motors to run at 100% duty cycle (fast)
  analogWrite(pwm_b, 255);

             LEDON = true;
           }else{
             //led spento
              digitalWrite(dir_a, HIGH);  //Reverse motor direction, 1 high, 2 low
  digitalWrite(dir_b, HIGH);  //Reverse motor direction, 3 low, 4 high
  
  delay(1000);
  
  analogWrite(pwm_a, 100);  //set both motors to run at (100/255 = 39)% duty cycle
  analogWrite(pwm_b, 100);
             digitalWrite(ledPin, LOW);    // set the LED OFF
             LEDON = false;             
           }
           
          // risposta al client
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println();
          //set background color
          client.print("<body style=background-color:withe>");
          //send first heading
          client.println("<font color='red'><h1>Arduino Wifly Shield TEST</font></h1>");
          client.println("<hr />");  //separatore a linea
          //visualizza valore canale analogico 0
          client.println("<font color='blue' size='5'>Analogico CH0= ");        
          
          client.print(analogRead(0));     //visualizza il valore della variabile
          client.println("<form><input type=submit value=CHECK ></form>");           
          client.println("<hr />");
          //visualizza link
          client.println("<font color='blue' size='5'>Link: ");
     
          client.println("
");
          client.println("<hr />");
          //controllo led via checkbox
          client.println("<h1>Controllo LED</h1>");
          client.println("<form method=get name=LED><input type=checkbox name=L value=LED_ON>LED
<input type=submit value=submit></form>");      
          client.println("<hr />");        
          
          // Gestione LED con pulsanti
          client.println("<form><input type=submit name=L value=LED_ON> </form>");                       
          client.println("<hr />");
          
          //client.println("<form><input name=L value=0>Numero da inviare<input type=submit value=INVIA></form>");    
        
          client.println("<form><input type=submit name=L value=LED_OFF ></form>");                       
          client.println("<hr />");        
            
          //visualizza stato del LED
          client.print("<font size='5'>Stato LED: ");
          if (LEDON)
              client.println("<font color='green' size='5'>ON"); 
          else
              client.println("<font color='red' size='5'>OFF");     

          client.println("</body></html>");
          //cancella la stringa per una nuova lettura
          readString="";
          //ferma il client
          delay(500);
          client.stop();
            }
          }
        }
      }
 }

someone can help me?

Can I ask whether you have a Mac or a PC?

I’ve written a short intro to setting up the RN-XV here:

http://www.tinkerfailure.com/2012/02/se … fly-rn-xv/

Are you trying to connect through a router? I only ask, because you don’t seem to have set up a gateway IP address in the code you posted.

C