Skip to content

Commit

Permalink
Merge pull request arduino-libraries#65 from per1234/update-examples-…
Browse files Browse the repository at this point in the history
…fw-version

Use WIFI_FIRMWARE_LATEST_VERSION in example sketch FW version checks
  • Loading branch information
facchinm authored Jun 13, 2019
2 parents cc0563e + 91f5386 commit 4b09e65
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion examples/AP_SimpleWebServer/AP_SimpleWebServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/ConnectNoEncryption/ConnectNoEncryption.ino
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/ConnectWithWEP/ConnectWithWEP.ino
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/ConnectWithWPA/ConnectWithWPA.ino
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/ScanNetworks/ScanNetworks.ino
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/ScanNetworksAdvanced/ScanNetworksAdvanced.ino
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/SimpleWebServerWiFi/SimpleWebServerWiFi.ino
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/WiFiChatServer/WiFiChatServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/WiFiPing/WiFiPing.ino
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/WiFiSSLClient/WiFiSSLClient.ino
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/WiFiUdpNtpClient/WiFiUdpNtpClient.ino
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/WiFiWebClient/WiFiWebClient.ino
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/WiFiWebClientRepeating/WiFiWebClientRepeating.ino
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/WiFiWebServer/WiFiWebServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void setup() {
}

String fv = WiFi.firmwareVersion();
if (fv < "1.0.0") {
if (fv < WIFI_FIRMWARE_LATEST_VERSION) {
Serial.println("Please upgrade the firmware");
}

Expand Down

0 comments on commit 4b09e65

Please sign in to comment.