diff --git a/src/main.cpp b/src/main.cpp index cbb037a..3eb7175 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -49,7 +49,7 @@ void setup() { MBclient = new ModbusClientRTU(config.getModbusRtsPin()); MBclient->setTimeout(1000); - MBclient->begin(modbusSerial); + MBclient->begin(modbusSerial, 1); for (uint8_t i = 1; i < 248; i++) { MBbridge.attachServer(i, i, ANY_FUNCTION_CODE, MBclient);