ArduinoModbus : Modbus Client class
Perform a "Write Single Coil" operation for the specified address and value.
int coilWrite(int address, uint8_t value);
int coilWrite(int id, int address, uint8_t value);
id (slave) - id of target, defaults to 0x00 if not specified
address - address to use for operation
value coi -l value to write
1 on success, 0 on failure.
ModbusClient Class