mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-27 21:54:30 +01:00
added firmware version check to WiFi shield examples
This commit is contained in:
parent
fd7e9c6d90
commit
d1717e92da
@ -31,6 +31,10 @@ void setup() {
|
|||||||
while(true);
|
while(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String fv = WiFi.firmwareVersion();
|
||||||
|
if( fv != "1.1.0" )
|
||||||
|
Serial.println("Please upgrade the firmware");
|
||||||
|
|
||||||
// attempt to connect to Wifi network:
|
// attempt to connect to Wifi network:
|
||||||
while ( status != WL_CONNECTED) {
|
while ( status != WL_CONNECTED) {
|
||||||
Serial.print("Attempting to connect to open SSID: ");
|
Serial.print("Attempting to connect to open SSID: ");
|
||||||
|
@ -43,6 +43,10 @@ void setup() {
|
|||||||
while(true);
|
while(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String fv = WiFi.firmwareVersion();
|
||||||
|
if( fv != "1.1.0" )
|
||||||
|
Serial.println("Please upgrade the firmware");
|
||||||
|
|
||||||
// attempt to connect to Wifi network:
|
// attempt to connect to Wifi network:
|
||||||
while ( status != WL_CONNECTED) {
|
while ( status != WL_CONNECTED) {
|
||||||
Serial.print("Attempting to connect to WEP network, SSID: ");
|
Serial.print("Attempting to connect to WEP network, SSID: ");
|
||||||
|
@ -32,6 +32,10 @@ void setup() {
|
|||||||
while(true);
|
while(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String fv = WiFi.firmwareVersion();
|
||||||
|
if( fv != "1.1.0" )
|
||||||
|
Serial.println("Please upgrade the firmware");
|
||||||
|
|
||||||
// attempt to connect to Wifi network:
|
// attempt to connect to Wifi network:
|
||||||
while ( status != WL_CONNECTED) {
|
while ( status != WL_CONNECTED) {
|
||||||
Serial.print("Attempting to connect to WPA SSID: ");
|
Serial.print("Attempting to connect to WPA SSID: ");
|
||||||
|
@ -32,6 +32,10 @@ void setup() {
|
|||||||
while(true);
|
while(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String fv = WiFi.firmwareVersion();
|
||||||
|
if( fv != "1.1.0" )
|
||||||
|
Serial.println("Please upgrade the firmware");
|
||||||
|
|
||||||
// Print WiFi MAC address:
|
// Print WiFi MAC address:
|
||||||
printMacAddress();
|
printMacAddress();
|
||||||
|
|
||||||
|
@ -40,6 +40,10 @@ void setup() {
|
|||||||
while(true); // don't continue
|
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:
|
// attempt to connect to Wifi network:
|
||||||
while ( status != WL_CONNECTED) {
|
while ( status != WL_CONNECTED) {
|
||||||
Serial.print("Attempting to connect to Network named: ");
|
Serial.print("Attempting to connect to Network named: ");
|
||||||
|
@ -47,6 +47,10 @@ void setup() {
|
|||||||
while(true);
|
while(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String fv = WiFi.firmwareVersion();
|
||||||
|
if( fv != "1.1.0" )
|
||||||
|
Serial.println("Please upgrade the firmware");
|
||||||
|
|
||||||
// attempt to connect to Wifi network:
|
// attempt to connect to Wifi network:
|
||||||
while ( status != WL_CONNECTED) {
|
while ( status != WL_CONNECTED) {
|
||||||
Serial.print("Attempting to connect to SSID: ");
|
Serial.print("Attempting to connect to SSID: ");
|
||||||
@ -57,6 +61,7 @@ void setup() {
|
|||||||
// wait 10 seconds for connection:
|
// wait 10 seconds for connection:
|
||||||
delay(10000);
|
delay(10000);
|
||||||
}
|
}
|
||||||
|
|
||||||
// start the server:
|
// start the server:
|
||||||
server.begin();
|
server.begin();
|
||||||
// you're connected now, so print out the status:
|
// you're connected now, so print out the status:
|
||||||
|
@ -61,6 +61,10 @@ void setup() {
|
|||||||
while(true);
|
while(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String fv = WiFi.firmwareVersion();
|
||||||
|
if( fv != "1.1.0" )
|
||||||
|
Serial.println("Please upgrade the firmware");
|
||||||
|
|
||||||
// attempt to connect to Wifi network:
|
// attempt to connect to Wifi network:
|
||||||
while ( status != WL_CONNECTED) {
|
while ( status != WL_CONNECTED) {
|
||||||
Serial.print("Attempting to connect to SSID: ");
|
Serial.print("Attempting to connect to SSID: ");
|
||||||
|
@ -66,6 +66,10 @@ void setup() {
|
|||||||
while(true);
|
while(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String fv = WiFi.firmwareVersion();
|
||||||
|
if( fv != "1.1.0" )
|
||||||
|
Serial.println("Please upgrade the firmware");
|
||||||
|
|
||||||
// attempt to connect to Wifi network:
|
// attempt to connect to Wifi network:
|
||||||
while ( status != WL_CONNECTED) {
|
while ( status != WL_CONNECTED) {
|
||||||
Serial.print("Attempting to connect to SSID: ");
|
Serial.print("Attempting to connect to SSID: ");
|
||||||
|
@ -51,6 +51,9 @@ void setup()
|
|||||||
while(true);
|
while(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String fv = WiFi.firmwareVersion();
|
||||||
|
if( fv != "1.1.0" )
|
||||||
|
Serial.println("Please upgrade the firmware");
|
||||||
|
|
||||||
// attempt to connect to Wifi network:
|
// attempt to connect to Wifi network:
|
||||||
while ( status != WL_CONNECTED) {
|
while ( status != WL_CONNECTED) {
|
||||||
|
@ -44,6 +44,10 @@ void setup() {
|
|||||||
while(true);
|
while(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String fv = WiFi.firmwareVersion();
|
||||||
|
if( fv != "1.1.0" )
|
||||||
|
Serial.println("Please upgrade the firmware");
|
||||||
|
|
||||||
// attempt to connect to Wifi network:
|
// attempt to connect to Wifi network:
|
||||||
while ( status != WL_CONNECTED) {
|
while ( status != WL_CONNECTED) {
|
||||||
Serial.print("Attempting to connect to SSID: ");
|
Serial.print("Attempting to connect to SSID: ");
|
||||||
|
@ -53,6 +53,10 @@ void setup() {
|
|||||||
while(true);
|
while(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String fv = WiFi.firmwareVersion();
|
||||||
|
if( fv != "1.1.0" )
|
||||||
|
Serial.println("Please upgrade the firmware");
|
||||||
|
|
||||||
// attempt to connect to Wifi network:
|
// attempt to connect to Wifi network:
|
||||||
while (status != WL_CONNECTED) {
|
while (status != WL_CONNECTED) {
|
||||||
Serial.print("Attempting to connect to SSID: ");
|
Serial.print("Attempting to connect to SSID: ");
|
||||||
|
@ -49,6 +49,10 @@ void setup() {
|
|||||||
while(true);
|
while(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String fv = WiFi.firmwareVersion();
|
||||||
|
if( fv != "1.1.0" )
|
||||||
|
Serial.println("Please upgrade the firmware");
|
||||||
|
|
||||||
// attempt to connect to Wifi network:
|
// attempt to connect to Wifi network:
|
||||||
while ( status != WL_CONNECTED) {
|
while ( status != WL_CONNECTED) {
|
||||||
Serial.print("Attempting to connect to SSID: ");
|
Serial.print("Attempting to connect to SSID: ");
|
||||||
|
@ -44,6 +44,10 @@ void setup() {
|
|||||||
while(true);
|
while(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String fv = WiFi.firmwareVersion();
|
||||||
|
if( fv != "1.1.0" )
|
||||||
|
Serial.println("Please upgrade the firmware");
|
||||||
|
|
||||||
// attempt to connect to Wifi network:
|
// attempt to connect to Wifi network:
|
||||||
while ( status != WL_CONNECTED) {
|
while ( status != WL_CONNECTED) {
|
||||||
Serial.print("Attempting to connect to SSID: ");
|
Serial.print("Attempting to connect to SSID: ");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user