Skip to content

Commit 16a4094

Browse files
authored
chore: correct comment in modbus client example (#342)
the esp was used as modbus client, but the code comment said modbus server.
1 parent df666c6 commit 16a4094

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/TCP-Ethernet/client/client.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void setup() {
3131
Ethernet.init(5); // SS pin
3232
Ethernet.begin(mac, ip); // start the Ethernet connection
3333
delay(1000); // give the Ethernet shield a second to initialize
34-
mb.client(); // Act as Modbus TCP server
34+
mb.client(); // Act as Modbus TCP client
3535
}
3636

3737
uint16_t res = 0;
@@ -49,4 +49,4 @@ if (mb.isConnected(remote)) { // Check if connection to Modbus Slave is establ
4949
showLast = millis();
5050
Serial.println(res);
5151
}
52-
}
52+
}

0 commit comments

Comments
 (0)