diff --git a/libraries/WiFi/examples/ConnectNoEncryption/ConnectNoEncryption.ino b/libraries/WiFi/examples/ConnectNoEncryption/ConnectNoEncryption.ino index f42a7f377..b4bf3d69d 100644 --- a/libraries/WiFi/examples/ConnectNoEncryption/ConnectNoEncryption.ino +++ b/libraries/WiFi/examples/ConnectNoEncryption/ConnectNoEncryption.ino @@ -30,6 +30,10 @@ void setup() { // don't continue: while(true); } + + String fv = WiFi.firmwareVersion(); + if( fv != "1.1.0" ) + Serial.println("Please upgrade the firmware"); // attempt to connect to Wifi network: while ( status != WL_CONNECTED) { diff --git a/libraries/WiFi/examples/ConnectWithWEP/ConnectWithWEP.ino b/libraries/WiFi/examples/ConnectWithWEP/ConnectWithWEP.ino index 19736b5b2..8b14a1a2b 100644 --- a/libraries/WiFi/examples/ConnectWithWEP/ConnectWithWEP.ino +++ b/libraries/WiFi/examples/ConnectWithWEP/ConnectWithWEP.ino @@ -43,6 +43,10 @@ void setup() { while(true); } + String fv = WiFi.firmwareVersion(); + if( fv != "1.1.0" ) + Serial.println("Please upgrade the firmware"); + // attempt to connect to Wifi network: while ( status != WL_CONNECTED) { Serial.print("Attempting to connect to WEP network, SSID: "); @@ -52,7 +56,7 @@ void setup() { // wait 10 seconds for connection: delay(10000); } - + // once you are connected : Serial.print("You're connected to the network"); printCurrentNet(); diff --git a/libraries/WiFi/examples/ConnectWithWPA/ConnectWithWPA.ino b/libraries/WiFi/examples/ConnectWithWPA/ConnectWithWPA.ino index fcc33ecaa..4950736fd 100644 --- a/libraries/WiFi/examples/ConnectWithWPA/ConnectWithWPA.ino +++ b/libraries/WiFi/examples/ConnectWithWPA/ConnectWithWPA.ino @@ -31,6 +31,10 @@ void setup() { // don't continue: while(true); } + + String fv = WiFi.firmwareVersion(); + if( fv != "1.1.0" ) + Serial.println("Please upgrade the firmware"); // attempt to connect to Wifi network: while ( status != WL_CONNECTED) { diff --git a/libraries/WiFi/examples/ScanNetworks/ScanNetworks.ino b/libraries/WiFi/examples/ScanNetworks/ScanNetworks.ino index 93b30006e..c47cae566 100644 --- a/libraries/WiFi/examples/ScanNetworks/ScanNetworks.ino +++ b/libraries/WiFi/examples/ScanNetworks/ScanNetworks.ino @@ -32,6 +32,10 @@ void setup() { while(true); } + String fv = WiFi.firmwareVersion(); + if( fv != "1.1.0" ) + Serial.println("Please upgrade the firmware"); + // Print WiFi MAC address: printMacAddress(); diff --git a/libraries/WiFi/examples/SimpleWebServerWiFi/SimpleWebServerWiFi.ino b/libraries/WiFi/examples/SimpleWebServerWiFi/SimpleWebServerWiFi.ino index cdb4e6282..c6e001b40 100644 --- a/libraries/WiFi/examples/SimpleWebServerWiFi/SimpleWebServerWiFi.ino +++ b/libraries/WiFi/examples/SimpleWebServerWiFi/SimpleWebServerWiFi.ino @@ -40,6 +40,10 @@ void setup() { while(true); // don't continue } + String fv = WiFi.firmwareVersion(); + if( fv != "1.1.0" ) + Serial.println("Please upgrade the firmware"); + // attempt to connect to Wifi network: while ( status != WL_CONNECTED) { Serial.print("Attempting to connect to Network named: "); diff --git a/libraries/WiFi/examples/WiFiChatServer/WiFiChatServer.ino b/libraries/WiFi/examples/WiFiChatServer/WiFiChatServer.ino index e4b1d1a3b..8043ec560 100644 --- a/libraries/WiFi/examples/WiFiChatServer/WiFiChatServer.ino +++ b/libraries/WiFi/examples/WiFiChatServer/WiFiChatServer.ino @@ -46,6 +46,10 @@ void setup() { // don't continue: while(true); } + + String fv = WiFi.firmwareVersion(); + if( fv != "1.1.0" ) + Serial.println("Please upgrade the firmware"); // attempt to connect to Wifi network: while ( status != WL_CONNECTED) { @@ -57,6 +61,7 @@ void setup() { // wait 10 seconds for connection: delay(10000); } + // start the server: server.begin(); // you're connected now, so print out the status: diff --git a/libraries/WiFi/examples/WiFiPachubeClient/WiFiPachubeClient.ino b/libraries/WiFi/examples/WiFiPachubeClient/WiFiPachubeClient.ino index f8ffc0745..045f8e950 100644 --- a/libraries/WiFi/examples/WiFiPachubeClient/WiFiPachubeClient.ino +++ b/libraries/WiFi/examples/WiFiPachubeClient/WiFiPachubeClient.ino @@ -60,6 +60,10 @@ void setup() { // don't continue: while(true); } + + String fv = WiFi.firmwareVersion(); + if( fv != "1.1.0" ) + Serial.println("Please upgrade the firmware"); // attempt to connect to Wifi network: while ( status != WL_CONNECTED) { diff --git a/libraries/WiFi/examples/WiFiPachubeClientString/WiFiPachubeClientString.ino b/libraries/WiFi/examples/WiFiPachubeClientString/WiFiPachubeClientString.ino index 243fe8383..9a6d3095d 100644 --- a/libraries/WiFi/examples/WiFiPachubeClientString/WiFiPachubeClientString.ino +++ b/libraries/WiFi/examples/WiFiPachubeClientString/WiFiPachubeClientString.ino @@ -65,6 +65,10 @@ void setup() { // don't continue: while(true); } + + String fv = WiFi.firmwareVersion(); + if( fv != "1.1.0" ) + Serial.println("Please upgrade the firmware"); // attempt to connect to Wifi network: while ( status != WL_CONNECTED) { diff --git a/libraries/WiFi/examples/WiFiUdpNtpClient/WiFiUdpNtpClient.ino b/libraries/WiFi/examples/WiFiUdpNtpClient/WiFiUdpNtpClient.ino index dd8b003fc..e958f8371 100644 --- a/libraries/WiFi/examples/WiFiUdpNtpClient/WiFiUdpNtpClient.ino +++ b/libraries/WiFi/examples/WiFiUdpNtpClient/WiFiUdpNtpClient.ino @@ -51,6 +51,9 @@ void setup() while(true); } + String fv = WiFi.firmwareVersion(); + if( fv != "1.1.0" ) + Serial.println("Please upgrade the firmware"); // attempt to connect to Wifi network: while ( status != WL_CONNECTED) { diff --git a/libraries/WiFi/examples/WiFiUdpSendReceiveString/WiFiUdpSendReceiveString.ino b/libraries/WiFi/examples/WiFiUdpSendReceiveString/WiFiUdpSendReceiveString.ino index eb1129503..b87dcf71a 100644 --- a/libraries/WiFi/examples/WiFiUdpSendReceiveString/WiFiUdpSendReceiveString.ino +++ b/libraries/WiFi/examples/WiFiUdpSendReceiveString/WiFiUdpSendReceiveString.ino @@ -43,6 +43,10 @@ void setup() { // don't continue: while(true); } + + String fv = WiFi.firmwareVersion(); + if( fv != "1.1.0" ) + Serial.println("Please upgrade the firmware"); // attempt to connect to Wifi network: while ( status != WL_CONNECTED) { diff --git a/libraries/WiFi/examples/WiFiWebClient/WiFiWebClient.ino b/libraries/WiFi/examples/WiFiWebClient/WiFiWebClient.ino index 310ec46aa..ed02a8498 100644 --- a/libraries/WiFi/examples/WiFiWebClient/WiFiWebClient.ino +++ b/libraries/WiFi/examples/WiFiWebClient/WiFiWebClient.ino @@ -52,6 +52,10 @@ void setup() { // don't continue: while(true); } + + String fv = WiFi.firmwareVersion(); + if( fv != "1.1.0" ) + Serial.println("Please upgrade the firmware"); // attempt to connect to Wifi network: while (status != WL_CONNECTED) { diff --git a/libraries/WiFi/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino b/libraries/WiFi/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino index 96eb6283d..d4b5cf80f 100644 --- a/libraries/WiFi/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino +++ b/libraries/WiFi/examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino @@ -48,6 +48,10 @@ void setup() { // don't continue: while(true); } + + String fv = WiFi.firmwareVersion(); + if( fv != "1.1.0" ) + Serial.println("Please upgrade the firmware"); // attempt to connect to Wifi network: while ( status != WL_CONNECTED) { diff --git a/libraries/WiFi/examples/WiFiWebServer/WiFiWebServer.ino b/libraries/WiFi/examples/WiFiWebServer/WiFiWebServer.ino index de861e880..c2ed9d1a8 100644 --- a/libraries/WiFi/examples/WiFiWebServer/WiFiWebServer.ino +++ b/libraries/WiFi/examples/WiFiWebServer/WiFiWebServer.ino @@ -43,6 +43,10 @@ void setup() { // don't continue: while(true); } + + String fv = WiFi.firmwareVersion(); + if( fv != "1.1.0" ) + Serial.println("Please upgrade the firmware"); // attempt to connect to Wifi network: while ( status != WL_CONNECTED) {