# Problem with testing wifi shield

**URL:** <https://forum.arduino.cc/t/problem-with-testing-wifi-shield/431880>\
**Category:** Networking, Protocols, and Devices\
**Created:** [January 18, 2017, 7:01pm UTC](https://forum.arduino.cc/t/problem-with-testing-wifi-shield/431880 "2017-01-18T19:01:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yass10](https://avatars.discourse-cdn.com/v4/letter/y/df788c/32.png) [@yass10](https://forum.arduino.cc/u/yass10)\
**Post date:** [January 18, 2017, 7:01pm UTC](https://forum.arduino.cc/t/problem-with-testing-wifi-shield/431880/1 "2017-01-18T19:01:15Z")

</div>

Hello Arduino cummunity,

i'm an arduino novice ,i tried the simplewebserverprogram, which is a simple web server that lets you blink an LED via the web.  
here is the code :

```cpp
int status = WL_IDLE_STATUS;
WiFiServer server(80);

void setup() {
  Serial.begin(9600);      // initialize serial communication
  pinMode(9, OUTPUT);      // set the LED pin mode

  
  if (WiFi.status() == WL_NO_SHIELD) {
    Serial.println("WiFi shield not present");
    while (true);      // don't continue
  }

  String fv = WiFi.firmwareVersion();
  if (fv != "1.1.0") {
    Serial.println("Please upgrade the firmware");
  }

  
  while (status != WL_CONNECTED) {
    Serial.print("Attempting to connect to Network named: ");
    Serial.println(ssid);                   

    
    status = WiFi.begin(ssid, pass);
    // wait 10 seconds for connection:
    delay(10000);
  }
  server.begin();                           
  printWifiStatus();                        
}

void loop() {
  WiFiClient client = server.available();   

  if (client) {                             
    Serial.println("new client");           
    String currentLine = "";                
    while (client.connected()) {           
      if (client.available()) {             
        char c = client.read();            
        Serial.write(c);                   
        if (c == '\n') {                  

          
          if (currentLine.length() == 0) {
           
            client.println("HTTP/1.1 200 OK");
            client.println("Content-type:text/html");
            client.println();

            
            client.print("Click <a href=\"/H\">here</a> turn the LED on pin 9 on
");
            client.print("Click <a href=\"/L\">here</a> turn the LED on pin 9 off
");

            
            client.println();
            
            break;
          } else {    // if you got a newline, then clear currentLine:
            currentLine = "";
          }
        } else if (c != '\r') {  // if you got anything else but a carriage return character,
          currentLine += c;      // add it to the end of the currentLine
        }

        
        if (currentLine.endsWith("GET /H")) {
          digitalWrite(9, HIGH);              // GET /H turns the LED on
        }
        if (currentLine.endsWith("GET /L")) {
          digitalWrite(9, LOW);                // GET /L turns the LED off
        }
      }
    }
    
    client.stop();
    Serial.println("client disonnected");
  }
}

void printWifiStatus() {
  
  Serial.print("SSID: ");
  Serial.println(WiFi.SSID());

  
  IPAddress ip = WiFi.localIP();
  Serial.print("IP Address: ");
  Serial.println(ip);

  long rssi = WiFi.RSSI();
  Serial.print("signal strength (RSSI):");
  Serial.print(rssi);
  Serial.println(" dBm");
 
  Serial.print("To see this page in action, open a browser to http://");
  Serial.println(ip);
}

```

this is what i got on the serial monitor :

Please upgrade the firmware  
Attempting to connect to Network named: Livebox-881A  
SSID: Livebox-881A  
IP Address: 192.168.1.14  
signal strength (RSSI):-33 dBm  
To see this page in action, open a browser to [http://192.168.1.14](http://192.168.1.14)

it doesn't seem to create the server ,i don't know what the problem is ?

my firmware shield's version is 1.0.0 , is upgrading the firmware version to 1.1.0 mandatory ?

any help would be appreciated ,  
thank's

---

<div class="post-metadata">

**Author:** ![SurferTim](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/surfertim/32/1072341_2.png) [@SurferTim](https://forum.arduino.cc/u/SurferTim)\
**Post date:** [January 18, 2017, 7:21pm UTC](https://forum.arduino.cc/t/problem-with-testing-wifi-shield/431880/2 "2017-01-18T19:21:25Z")

</div>

If you want it to work, you must upgrade the firmware to v1.1.0.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 11:03am UTC](https://forum.arduino.cc/t/problem-with-testing-wifi-shield/431880/3 "2021-05-06T11:03:47Z")

</div>

Closed on May 6, 2021, 11:03am UTC


