mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
added firmware version check to WiFi shield examples
This commit is contained in:
parent
fd7e9c6d90
commit
d1717e92da
@ -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) {
|
||||
|
@ -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();
|
||||
|
@ -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) {
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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: ");
|
||||
|
@ -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:
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user