We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9a1dcb0 + 72f4d58 commit c8b6cfeCopy full SHA for c8b6cfe
content/learn/05.communication/07.modbus/modbus.md
@@ -109,7 +109,7 @@ Inside you can see how the `requestFrom()` is being called with *Device Address*
109
float readVoltage() {
110
float volt = 0.;
111
// Send reading request over RS485
112
- if (!ModbusRTUClient.requestFrom(0x21, INPUT_REGISTERS, 30017, 2)) {
+ if (!ModbusRTUClient.requestFrom(0x21, INPUT_REGISTERS, 30107, 2)) {
113
// Error handling
114
Serial.print("- Failed to read the voltage! ");
115
Serial.println(ModbusRTUClient.lastError());
0 commit comments