Open
Description
I have this block of code in my setup()
, which should theoretically set all coils to 1, but when I turn on the arduino the coils go to 0, and only go to the correct value when I send a modbus command to the arduino (even a read). Is there something that I am not understanding or is this a bug?
const bool defaultCoilValue = 1;
for (int i = startCoilAddress; i <= numberOfCoils; i++) {
mb.addCoil(i, defaultCoilValue);
mb.addIsts(i, defaultCoilValue);
}
Metadata
Metadata
Assignees
Labels
No labels