Skip to content

Commit

Permalink
use core id 1 to further reduce modbus errors (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
zivillian authored Jul 31, 2023
1 parent 2a13553 commit 39416a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/switch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void PhaseSwitch::beginModbus(){
RTUutils::prepareHardwareSerial(modbusSerial);
modbusSerial.begin(19200, SERIAL_8E1);
_client.setTimeout(500);
_client.begin(modbusSerial);
_client.begin(modbusSerial, 1);
_bridge.attachServer(_serverId, _serverId, ANY_FUNCTION_CODE, &_client);
_bridgeWorker = _bridge.getWorker(_serverId, ANY_FUNCTION_CODE);
_bridge.start(502, 10, 30000);
Expand Down

0 comments on commit 39416a4

Please sign in to comment.