Skip to content

Commit 7f43e68

Browse files
committed
Correct typos in comments and documentation
1 parent 103ae6f commit 7f43e68

File tree

6 files changed

+31
-31
lines changed

6 files changed

+31
-31
lines changed

examples/WiFiAdvancedCallback/WiFiAdvancedCallback.ino

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
44
This example connects to a MQTT broker and subscribes to a single topic,
55
it also publishes a message to another topic every 10 seconds.
6-
When a message is received it prints the message to the serial monitor,
6+
When a message is received it prints the message to the Serial Monitor,
77
it uses the callback functionality of the library.
88
99
It also demonstrates how to set the will message, get/set QoS,
1010
duplicate and retain values of messages.
1111
1212
The circuit:
13-
- Arduino MKR 1000, MKR 1010 or Uno WiFi Rev.2 board
13+
- Arduino MKR 1000, MKR 1010 or Uno WiFi Rev2 board
1414
1515
This example code is in the public domain.
1616
*/
@@ -26,7 +26,7 @@
2626

2727
#include "arduino_secrets.h"
2828
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
29-
char ssid[] = SECRET_SSID; // your network SSID (name)
29+
char ssid[] = SECRET_SSID; // your network SSID (name)
3030
char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP)
3131

3232
// To connect with SSL/TLS:
@@ -56,7 +56,7 @@ void setup() {
5656
; // wait for serial port to connect. Needed for native USB port only
5757
}
5858

59-
// attempt to connect to Wifi network:
59+
// attempt to connect to WiFi network:
6060
Serial.print("Attempting to connect to WPA SSID: ");
6161
Serial.println(ssid);
6262
while (WiFi.begin(ssid, pass) != WL_CONNECTED) {
@@ -68,7 +68,7 @@ void setup() {
6868
Serial.println("You're connected to the network");
6969
Serial.println();
7070

71-
// You can provide a unique client ID, if not set the library uses Arduin-millis()
71+
// You can provide a unique client ID, if not set the library uses Arduino-millis()
7272
// Each client must have a unique client ID
7373
// mqttClient.setId("clientId");
7474

@@ -79,8 +79,8 @@ void setup() {
7979
// you can disable this behaviour by using
8080
// mqttClient.setCleanSession(false);
8181

82-
// set a will message, used by the broker when the connection dies unexpectantly
83-
// you must know the size of the message before hand, and it must be set before connecting
82+
// set a will message, used by the broker when the connection dies unexpectedly
83+
// you must know the size of the message beforehand, and it must be set before connecting
8484
String willPayload = "oh no!";
8585
bool willRetain = true;
8686
int willQos = 1;
@@ -110,7 +110,7 @@ void setup() {
110110
Serial.println();
111111

112112
// subscribe to a topic
113-
// the second parameter set's the QoS of the subscription,
113+
// the second parameter sets the QoS of the subscription,
114114
// the the library supports subscribing at QoS 0, 1, or 2
115115
int subscribeQos = 1;
116116

@@ -129,7 +129,7 @@ void loop() {
129129
// send MQTT keep alives which avoids being disconnected by the broker
130130
mqttClient.poll();
131131

132-
// avoid having delays in loop, we'll use the strategy from BlinkWithoutDelay
132+
// to avoid having delays in loop, we'll use the strategy from BlinkWithoutDelay
133133
// see: File -> Examples -> 02.Digital -> BlinkWithoutDelay for more info
134134
unsigned long currentMillis = millis();
135135

examples/WiFiEcho/WiFiEcho.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
44
This example connects to a MQTT broker and subscribes to a single topic,
55
it also publishes a message to the same topic once a second.
6-
When a message is received it prints the message to the serial monitor.
6+
When a message is received it prints the message to the Serial Monitor.
77
88
The circuit:
9-
- Arduino MKR 1000, MKR 1010 or Uno WiFi Rev.2 board
9+
- Arduino MKR 1000, MKR 1010 or Uno WiFi Rev2 board
1010
1111
This example code is in the public domain.
1212
*/
@@ -22,7 +22,7 @@
2222

2323
#include "arduino_secrets.h"
2424
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
25-
char ssid[] = SECRET_SSID; // your network SSID (name)
25+
char ssid[] = SECRET_SSID; // your network SSID (name)
2626
char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP)
2727

2828
// To connect with SSL/TLS:
@@ -51,7 +51,7 @@ void setup() {
5151
; // wait for serial port to connect. Needed for native USB port only
5252
}
5353

54-
// attempt to connect to Wifi network:
54+
// attempt to connect to WiFi network:
5555
Serial.print("Attempting to connect to WPA SSID: ");
5656
Serial.println(ssid);
5757
while (WiFi.begin(ssid, pass) != WL_CONNECTED) {
@@ -118,7 +118,7 @@ void loop() {
118118
Serial.println();
119119
}
120120

121-
// avoid having delays in loop, we'll use the strategy from BlinkWithoutDelay
121+
// to avoid having delays in loop, we'll use the strategy from BlinkWithoutDelay
122122
// see: File -> Examples -> 02.Digital -> BlinkWithoutDelay for more info
123123
unsigned long currentMillis = millis();
124124

examples/WiFiEchoCallback/WiFiEchoCallback.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
44
This example connects to a MQTT broker and subscribes to a single topic,
55
it also publishes a message to the same topic once a second.
6-
When a message is received it prints the message to the serial monitor,
6+
When a message is received it prints the message to the Serial Monitor,
77
it uses the callback functionality of the library.
88
99
The circuit:
10-
- Arduino MKR 1000, MKR 1010 or Uno WiFi Rev.2 board
10+
- Arduino MKR 1000, MKR 1010 or Uno WiFi Rev2 board
1111
1212
This example code is in the public domain.
1313
*/
@@ -23,7 +23,7 @@
2323

2424
#include "arduino_secrets.h"
2525
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
26-
char ssid[] = SECRET_SSID; // your network SSID (name)
26+
char ssid[] = SECRET_SSID; // your network SSID (name)
2727
char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP)
2828

2929
// To connect with SSL/TLS:
@@ -51,7 +51,7 @@ void setup() {
5151
; // wait for serial port to connect. Needed for native USB port only
5252
}
5353

54-
// attempt to connect to Wifi network:
54+
// attempt to connect to WiFi network:
5555
Serial.print("Attempting to connect to WPA SSID: ");
5656
Serial.println(ssid);
5757
while (WiFi.begin(ssid, pass) != WL_CONNECTED) {
@@ -106,7 +106,7 @@ void loop() {
106106
// send MQTT keep alives which avoids being disconnected by the broker
107107
mqttClient.poll();
108108

109-
// avoid having delays in loop, we'll use the strategy from BlinkWithoutDelay
109+
// to avoid having delays in loop, we'll use the strategy from BlinkWithoutDelay
110110
// see: File -> Examples -> 02.Digital -> BlinkWithoutDelay for more info
111111
unsigned long currentMillis = millis();
112112

examples/WiFiSimpleReceive/WiFiSimpleReceive.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
ArduinoMqttClient - WiFi Simple Receive
33
44
This example connects to a MQTT broker and subscribes to a single topic.
5-
When a message is received it prints the message to the serial monitor.
5+
When a message is received it prints the message to the Serial Monitor.
66
77
The circuit:
8-
- Arduino MKR 1000, MKR 1010 or Uno WiFi Rev.2 board
8+
- Arduino MKR 1000, MKR 1010 or Uno WiFi Rev2 board
99
1010
This example code is in the public domain.
1111
*/
@@ -21,7 +21,7 @@
2121

2222
#include "arduino_secrets.h"
2323
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
24-
char ssid[] = SECRET_SSID; // your network SSID (name)
24+
char ssid[] = SECRET_SSID; // your network SSID (name)
2525
char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP)
2626

2727
// To connect with SSL/TLS:
@@ -44,7 +44,7 @@ void setup() {
4444
; // wait for serial port to connect. Needed for native USB port only
4545
}
4646

47-
// attempt to connect to Wifi network:
47+
// attempt to connect to WiFi network:
4848
Serial.print("Attempting to connect to WPA SSID: ");
4949
Serial.println(ssid);
5050
while (WiFi.begin(ssid, pass) != WL_CONNECTED) {

examples/WiFiSimpleReceiveCallback/WiFiSimpleReceiveCallback.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
ArduinoMqttClient - WiFi Simple Receive Callback
33
44
This example connects to a MQTT broker and subscribes to a single topic.
5-
When a message is received it prints the message to the serial monitor,
5+
When a message is received it prints the message to the Serial Monitor,
66
it uses the callback functionality of the library.
77
88
The circuit:
9-
- Arduino MKR 1000, MKR 1010 or Uno WiFi Rev.2 board
9+
- Arduino MKR 1000, MKR 1010 or Uno WiFi Rev2 board
1010
1111
This example code is in the public domain.
1212
*/
@@ -22,7 +22,7 @@
2222

2323
#include "arduino_secrets.h"
2424
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
25-
char ssid[] = SECRET_SSID; // your network SSID (name)
25+
char ssid[] = SECRET_SSID; // your network SSID (name)
2626
char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP)
2727

2828
// To connect with SSL/TLS:
@@ -45,7 +45,7 @@ void setup() {
4545
; // wait for serial port to connect. Needed for native USB port only
4646
}
4747

48-
// attempt to connect to Wifi network:
48+
// attempt to connect to WiFi network:
4949
Serial.print("Attempting to connect to WPA SSID: ");
5050
Serial.println(ssid);
5151
while (WiFi.begin(ssid, pass) != WL_CONNECTED) {

examples/WiFiSimpleSender/WiFiSimpleSender.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
a topic once a second.
66
77
The circuit:
8-
- Arduino MKR 1000, MKR 1010 or Uno WiFi Rev.2 board
8+
- Arduino MKR 1000, MKR 1010 or Uno WiFi Rev2 board
99
1010
This example code is in the public domain.
1111
*/
@@ -21,7 +21,7 @@
2121

2222
#include "arduino_secrets.h"
2323
///////please enter your sensitive data in the Secret tab/arduino_secrets.h
24-
char ssid[] = SECRET_SSID; // your network SSID (name)
24+
char ssid[] = SECRET_SSID; // your network SSID (name)
2525
char pass[] = SECRET_PASS; // your network password (use for WPA, or use as key for WEP)
2626

2727
// To connect with SSL/TLS:
@@ -49,7 +49,7 @@ void setup() {
4949
; // wait for serial port to connect. Needed for native USB port only
5050
}
5151

52-
// attempt to connect to Wifi network:
52+
// attempt to connect to WiFi network:
5353
Serial.print("Attempting to connect to WPA SSID: ");
5454
Serial.println(ssid);
5555
while (WiFi.begin(ssid, pass) != WL_CONNECTED) {
@@ -87,7 +87,7 @@ void loop() {
8787
// avoids being disconnected by the broker
8888
mqttClient.poll();
8989

90-
// avoid having delays in loop, we'll use the strategy from BlinkWithoutDelay
90+
// to avoid having delays in loop, we'll use the strategy from BlinkWithoutDelay
9191
// see: File -> Examples -> 02.Digital -> BlinkWithoutDelay for more info
9292
unsigned long currentMillis = millis();
9393

0 commit comments

Comments
 (0)