Skip to content

Commit ffb45a6

Browse files
committed
Fix typos in comments
1 parent af78cf6 commit ffb45a6

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

examples/RTU/ModbusRTUClientKitchenSink/ModbusRTUClientKitchenSink.ino

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
Modbus RTU Client Kitchen Sink
33
4-
This sketch creates a Modbus RTU Client and demostrates
4+
This sketch creates a Modbus RTU Client and demonstrates
55
how to use various Modbus Client APIs.
66
77
Circuit:
@@ -164,7 +164,7 @@ void readHoldingRegisterValues() {
164164
void readInputRegisterValues() {
165165
Serial.print("Reading input register values ... ");
166166

167-
// read 10 dsicrete input values from (slave) id 42,
167+
// read 10 discrete input values from (slave) id 42,
168168
if (!ModbusRTUClient.requestFrom(42, INPUT_REGISTERS, 0x00, 10)) {
169169
Serial.print("failed! ");
170170
Serial.println(ModbusRTUClient.lastError());
@@ -181,4 +181,3 @@ void readInputRegisterValues() {
181181
// Alternatively, to read a single Input Register value use:
182182
// ModbusRTUClient.inputRegisterRead(...)
183183
}
184-

examples/RTU/ModbusRTUServerKitchenSink/ModbusRTUServerKitchenSink.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
Modbus RTU Server Kitchen Sink
33
4-
This sketch creates a Modbus RTU Server and demostrates
4+
This sketch creates a Modbus RTU Server and demonstrates
55
how to use various Modbus Server APIs.
66
77
Circuit:
@@ -62,7 +62,7 @@ void loop() {
6262
ModbusRTUServer.discreteInputWrite(i, coilValue);
6363
}
6464

65-
// map the holiding register values to the input register values
65+
// map the holding register values to the input register values
6666
for (int i = 0; i < numHoldingRegisters; i++) {
6767
long holdingRegisterValue = ModbusRTUServer.holdingRegisterRead(i);
6868

examples/RTU/ModbusRTUServerLED/ModbusRTUServerLED.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void loop() {
5353
// coil value set, turn LED on
5454
digitalWrite(ledPin, HIGH);
5555
} else {
56-
// coild value clear, turn LED off
56+
// coil value clear, turn LED off
5757
digitalWrite(ledPin, LOW);
5858
}
5959
}

examples/RTU/ModbusRTUTemperatureSensor/ModbusRTUTemperatureSensor.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Modbus RTU Temeperature Sensor
2+
Modbus RTU Temperature Sensor
33
44
This sketch shows you how to interact with a Modbus RTU temperature and humidity sensor.
55
It reads the temperature and humidity values every 5 seconds and outputs them to the

examples/TCP/WiFiModbusClientToggle/WiFiModbusClientToggle.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void setup() {
4040

4141
Serial.println("Modbus TCP Client Toggle");
4242

43-
// attempt to connect to Wifi network:
43+
// attempt to connect to WiFi network:
4444
while (status != WL_CONNECTED) {
4545
Serial.print("Attempting to connect to SSID: ");
4646
Serial.println(ssid);

examples/TCP/WiFiModbusServerLED/WiFiModbusServerLED.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void setup() {
4141

4242
Serial.println("Modbus TCP Server LED");
4343

44-
// attempt to connect to Wifi network:
44+
// attempt to connect to WiFi network:
4545
while (status != WL_CONNECTED) {
4646
Serial.print("Attempting to connect to SSID: ");
4747
Serial.println(ssid);

src/ModbusClient.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ModbusClient {
6565
* @param id (slave) id of target, defaults to 0x00 if not specified
6666
* @param address start address to use for operation
6767
*
68-
* @return holiding register value on success, -1 on failure.
68+
* @return holding register value on success, -1 on failure.
6969
*/
7070
long holdingRegisterRead(int address);
7171
long holdingRegisterRead(int id, int address);

0 commit comments

Comments
 (0)