Skip to content

Commit 395d147

Browse files
committed
Fix typos in comments and Serial prints
1 parent 6df0e09 commit 395d147

File tree

27 files changed

+79
-114
lines changed

27 files changed

+79
-114
lines changed

examples/AP_SimpleWebServer/AP_SimpleWebServer.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
A simple web server that lets you blink an LED via the web.
55
This sketch will create a new access point (with no password).
66
It will then launch a new server and print out the IP address
7-
to the Serial monitor. From there, you can open that address in a web browser
7+
to the Serial Monitor. From there, you can open that address in a web browser
88
to turn on and off the LED on pin 13.
99
1010
If the IP address of your board is yourAddress:
@@ -22,7 +22,7 @@
2222
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
2323
char ssid[] = SECRET_SSID; // your network SSID (name)
2424
char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP)
25-
int keyIndex = 0; // your network key Index number (needed only for WEP)
25+
int keyIndex = 0; // your network key index number (needed only for WEP)
2626

2727
int led = LED_BUILTIN;
2828
int status = WL_IDLE_STATUS;
@@ -51,7 +51,7 @@ void setup() {
5151
Serial.println("Please upgrade the firmware");
5252
}
5353

54-
// by default the local IP address of will be 192.168.4.1
54+
// by default the local IP address will be 192.168.4.1
5555
// you can override it with the following:
5656
// WiFi.config(IPAddress(10, 0, 0, 1));
5757

examples/ConnectNoEncryption/ConnectNoEncryption.ino

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
3-
This example connects to an unencrypted Wifi network.
2+
This example connects to an unencrypted WiFi network.
43
Then it prints the MAC address of the board,
54
the IP address obtained, and other network details.
65
@@ -15,7 +14,7 @@
1514
#include "arduino_secrets.h"
1615
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
1716
char ssid[] = SECRET_SSID; // your network SSID (name)
18-
int status = WL_IDLE_STATUS; // the Wifi radio's status
17+
int status = WL_IDLE_STATUS; // the WiFi radio's status
1918

2019
void setup() {
2120
//Initialize serial and wait for port to open:
@@ -35,7 +34,7 @@ void setup() {
3534
Serial.println("Please upgrade the firmware");
3635
}
3736

38-
// attempt to connect to Wifi network:
37+
// attempt to connect to WiFi network:
3938
while (status != WL_CONNECTED) {
4039
Serial.print("Attempting to connect to open SSID: ");
4140
Serial.println(ssid);

examples/ConnectWithWEP/ConnectWithWEP.ino

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
3-
This example connects to a WEP-encrypted Wifi network.
4-
Then it prints the MAC address of the Wifi module,
2+
This example connects to a WEP-encrypted WiFi network.
3+
Then it prints the MAC address of the WiFi module,
54
the IP address obtained, and other network details.
65
76
If you use 40-bit WEP, you need a key that is 10 characters long,
@@ -26,8 +25,8 @@
2625
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
2726
char ssid[] = SECRET_SSID; // your network SSID (name)
2827
char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP)
29-
int keyIndex = 0; // your network key Index number
30-
int status = WL_IDLE_STATUS; // the Wifi radio's status
28+
int keyIndex = 0; // your network key index number
29+
int status = WL_IDLE_STATUS; // the WiFi radio's status
3130

3231
void setup() {
3332
//Initialize serial and wait for port to open:
@@ -48,7 +47,7 @@ void setup() {
4847
Serial.println("Please upgrade the firmware");
4948
}
5049

51-
// attempt to connect to Wifi network:
50+
// attempt to connect to WiFi network:
5251
while (status != WL_CONNECTED) {
5352
Serial.print("Attempting to connect to WEP network, SSID: ");
5453
Serial.println(ssid);

examples/ConnectWithWPA/ConnectWithWPA.ino

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
3-
This example connects to an unencrypted Wifi network.
4-
Then it prints the MAC address of the Wifi module,
2+
This example connects to an unencrypted WiFi network.
3+
Then it prints the MAC address of the WiFi module,
54
the IP address obtained, and other network details.
65
76
created 13 July 2010
@@ -16,7 +15,7 @@
1615
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
1716
char ssid[] = SECRET_SSID; // your network SSID (name)
1817
char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP)
19-
int status = WL_IDLE_STATUS; // the Wifi radio's status
18+
int status = WL_IDLE_STATUS; // the WiFi radio's status
2019

2120
void setup() {
2221
//Initialize serial and wait for port to open:
@@ -37,7 +36,7 @@ void setup() {
3736
Serial.println("Please upgrade the firmware");
3837
}
3938

40-
// attempt to connect to Wifi network:
39+
// attempt to connect to WiFi network:
4140
while (status != WL_CONNECTED) {
4241
Serial.print("Attempting to connect to WPA SSID: ");
4342
Serial.println(ssid);

examples/ConnectWithWPA2Enterprise/ConnectWithWPA2Enterprise.ino

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
This example connects to an WPA2 Enterprise WiFi network.
3-
Then it prints the MAC address of the WiFi module,
2+
This example connects to a WPA2 Enterprise WiFi network.
3+
Then it prints the MAC address of the WiFi module,
44
the IP address obtained, and other network details.
55
66
Based on ConnectWithWPA.ino by dlf (Metodo2 srl) and Tom Igoe
@@ -13,7 +13,7 @@
1313
char ssid[] = SECRET_SSID; // your WPA2 enterprise network SSID (name)
1414
char user[] = SECRET_USER; // your WPA2 enterprise username
1515
char pass[] = SECRET_PASS; // your WPA2 enterprise password
16-
int status = WL_IDLE_STATUS; // the Wifi radio's status
16+
int status = WL_IDLE_STATUS; // the WiFi radio's status
1717

1818
void setup() {
1919
//Initialize serial and wait for port to open:
@@ -34,14 +34,13 @@ void setup() {
3434
Serial.println("Please upgrade the firmware");
3535
}
3636

37-
// attempt to connect to Wifi network:
37+
// attempt to connect to WiFi network:
3838
while (status != WL_CONNECTED) {
3939
Serial.print("Attempting to connect to WPA SSID: ");
4040
Serial.println(ssid);
4141
// Connect to WPA2 enterprise network:
42-
// - You can optionally provide additional identity and CA cert (string) parameters:
42+
// - You can optionally provide additional identity and CA cert (string) parameters if your network requires them:
4343
// WiFi.beginEnterprise(ssid, user, pass, identity, caCert)
44-
// . if your network requires them.
4544
status = WiFi.beginEnterprise(ssid, user, pass);
4645

4746
// wait 10 seconds for connection:

examples/ScanNetworks/ScanNetworks.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/*
2-
32
This example prints the board's MAC address, and
4-
scans for available Wifi networks using the NINA module.
3+
scans for available WiFi networks using the NINA module.
54
Every ten seconds, it scans again. It doesn't actually
65
connect to any network, so no encryption scheme is specified.
76
@@ -56,7 +55,7 @@ void listNetworks() {
5655
Serial.println("** Scan Networks **");
5756
int numSsid = WiFi.scanNetworks();
5857
if (numSsid == -1) {
59-
Serial.println("Couldn't get a wifi connection");
58+
Serial.println("Couldn't get a WiFi connection");
6059
while (true);
6160
}
6261

examples/ScanNetworksAdvanced/ScanNetworksAdvanced.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/*
2-
32
This example prints the board's MAC address, and
43
scans for available WiFi networks using the NINA module.
54
Every ten seconds, it scans again. It doesn't actually

examples/SimpleWebServerWiFi/SimpleWebServerWiFi.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
44
A simple web server that lets you blink an LED via the web.
55
This sketch will print the IP address of your WiFi module (once connected)
6-
to the Serial monitor. From there, you can open that address in a web browser
6+
to the Serial Monitor. From there, you can open that address in a web browser
77
to turn on and off the LED on pin 9.
88
99
If the IP address of your board is yourAddress:
1010
http://yourAddress/H turns the LED on
1111
http://yourAddress/L turns it off
1212
1313
This example is written for a network using WPA encryption. For
14-
WEP or WPA, change the Wifi.begin() call accordingly.
14+
WEP or WPA, change the WiFi.begin() call accordingly.
1515
1616
Circuit:
1717
* Board with NINA module (Arduino MKR WiFi 1010, MKR VIDOR 4000 and UNO WiFi Rev.2)
@@ -27,7 +27,7 @@
2727
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
2828
char ssid[] = SECRET_SSID; // your network SSID (name)
2929
char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP)
30-
int keyIndex = 0; // your network key Index number (needed only for WEP)
30+
int keyIndex = 0; // your network key index number (needed only for WEP)
3131

3232
int status = WL_IDLE_STATUS;
3333
WiFiServer server(80);
@@ -48,7 +48,7 @@ void setup() {
4848
Serial.println("Please upgrade the firmware");
4949
}
5050

51-
// attempt to connect to Wifi network:
51+
// attempt to connect to WiFi network:
5252
while (status != WL_CONNECTED) {
5353
Serial.print("Attempting to connect to Network named: ");
5454
Serial.println(ssid); // print the network name (SSID);
@@ -110,7 +110,7 @@ void loop() {
110110
}
111111
// close the connection:
112112
client.stop();
113-
Serial.println("client disonnected");
113+
Serial.println("client disconnected");
114114
}
115115
}
116116

examples/Tools/CheckFirmwareVersion/CheckFirmwareVersion.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* This example check if the firmware loaded on the NINA module
2+
* This example checks if the firmware loaded on the NINA module
33
* is updated.
44
*
55
* Circuit:
@@ -47,7 +47,7 @@ void setup() {
4747
Serial.println("Check result: PASSED");
4848
} else {
4949
Serial.println("Check result: NOT PASSED");
50-
Serial.println(" - The firmware version on the module do not match the");
50+
Serial.println(" - The firmware version on the module does not match the");
5151
Serial.println(" version required by the library, you may experience");
5252
Serial.println(" issues or failures.");
5353
}
@@ -56,4 +56,3 @@ void setup() {
5656
void loop() {
5757
// do nothing
5858
}
59-

examples/Tools/FirmwareUpdater/Endianess.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,3 @@ uint32_t toNetwork32(uint32_t to) {
5858
uint16_t toNetwork16(uint16_t to) {
5959
return fromNetwork16(to);
6060
}
61-

0 commit comments

Comments
 (0)