mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
added firmware version check to WiFi shield examples
This commit is contained in:
@ -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: ");
|
||||
|
Reference in New Issue
Block a user