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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user