Skip to content

Commit a42d46a

Browse files
committed
Fix WiFi Wi-Fi spelling
1 parent 12b9da8 commit a42d46a

File tree

2 files changed

+22
-14
lines changed

2 files changed

+22
-14
lines changed

libraries/OTAUpdate/examples/OTA/OTA.ino

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ void setup() {
2929
; // wait for serial port to connect. Needed for native USB port only
3030
}
3131

32-
// check for the WiFi module:
32+
// check for the Wi-Fi module:
3333
if (WiFi.status() == WL_NO_MODULE) {
34-
Serial.println("Communication with WiFi module failed!");
34+
Serial.println("Communication with Wi-Fi module failed!");
3535
// don't continue
3636
while (true);
3737
}
@@ -41,7 +41,7 @@ void setup() {
4141
Serial.println("Please upgrade the firmware");
4242
}
4343

44-
// attempt to connect to WiFi network:
44+
// attempt to connect to Wi-Fi network:
4545
while (status != WL_CONNECTED) {
4646
Serial.print("Attempting to connect to SSID: ");
4747
Serial.println(ssid);
@@ -52,6 +52,8 @@ void setup() {
5252
delay(1000);
5353
}
5454

55+
printWiFiStatus();
56+
5557
OTAUpdate::Error ret = OTAUpdate::Error::None;
5658
ret = ota.begin("/update.bin");
5759
if(ret != OTAUpdate::Error::None) {
@@ -92,7 +94,7 @@ void loop() {
9294
}
9395

9496
/* -------------------------------------------------------------------------- */
95-
void printWifiStatus() {
97+
void printWiFiStatus() {
9698
/* -------------------------------------------------------------------------- */
9799
// print the SSID of the network you're attached to:
98100
Serial.print("SSID: ");

libraries/OTAUpdate/examples/WiFiFirmwareOTA/WiFiFirmwareOTA.ino

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
/*
22
OTA
33
4-
This sketch demonstrates how to make an self OTA Update the UNO R4 WiFi Firmware
5-
Upload the Sketch and wait for Serial detach.
6-
After the update the new wifi firmware version will be 98.98.98
4+
This sketch demonstrates how to make the UNO R4 WiFi self-update its Wi-Fi module
5+
firmware via OTA. Upload the Sketch and wait for Serial detach. After the update
6+
the new Wi-Fi firmware version will be 98.98.98
7+
8+
WARNING: running this sketch will load a test Wi-Fi firmware version on the UNO R4
9+
WiFi module. To restore a production firmware use the Arduino Firmware Uploader or
10+
the update packages available here:
11+
12+
https://github.com/arduino/uno-r4-wifi-usb-bridge/releases
713
814
*/
915

@@ -30,9 +36,9 @@ void setup() {
3036
; // wait for serial port to connect. Needed for native USB port only
3137
}
3238

33-
// check for the WiFi module:
39+
// check for the Wi-Fi module:
3440
if (WiFi.status() == WL_NO_MODULE) {
35-
Serial.println("Communication with WiFi module failed!");
41+
Serial.println("Communication with Wi-Fi module failed!");
3642
// don't continue
3743
while (true);
3844
}
@@ -42,10 +48,10 @@ void setup() {
4248
Serial.println("Please upgrade the firmware");
4349
}
4450

45-
Serial.print("Current WIFi firmware version: ");
51+
Serial.print("Current Wi-Fi firmware version: ");
4652
Serial.println(fv);
4753

48-
// attempt to connect to WiFi network:
54+
// attempt to connect to Wi-Fi network:
4955
while (status != WL_CONNECTED) {
5056
Serial.print("Attempting to connect to SSID: ");
5157
Serial.println(ssid);
@@ -56,7 +62,7 @@ void setup() {
5662
delay(1000);
5763
}
5864

59-
printWifiStatus();
65+
printWiFiStatus();
6066

6167
OTAUpdate::Error ret = OTAUpdate::Error::None;
6268
ret = ota.begin();
@@ -102,13 +108,13 @@ void loop() {
102108
/* -------------------------------------------------------------------------- */
103109

104110
String fv = WiFi.firmwareVersion();
105-
Serial.print("Updated WiFi firmware version: ");
111+
Serial.print("Updated Wi-Fi firmware version: ");
106112
Serial.println(fv);
107113
delay(1000);
108114
}
109115

110116
/* -------------------------------------------------------------------------- */
111-
void printWifiStatus() {
117+
void printWiFiStatus() {
112118
/* -------------------------------------------------------------------------- */
113119
// print the SSID of the network you're attached to:
114120
Serial.print("SSID: ");

0 commit comments

Comments
 (0)