Closed saiid2020 closed 1 year ago
There is a way to send broadcast messages. Use 0
as the slaveId
. Note this only works with the write functions: writeSingleCoil
, writeSingleHoldingRegister
, writeMultipleCoils
, and writeMultipleHoldingRegisters
.
e.g.
writeSingleCoil(0, 5, true);
To set coil 5 true
on all the slave/server devices connected to the bus.
There is no code for broadcast?