ArduinoModbus : Modbus Server class

coilWrite()

Description

Perform a "Write Single Coil" operation for the specified address and value.

Syntax

int coilWrite(int address, uint8_t value);
int coilWrite(int id, int address, uint8_t value);

Parameters

id (slave) - id of target, defaults to 0x00 if not specified
address - address to use for operation
value coi -l value to write

Returns

1 on success, 0 on failure.

See also

ModbusServer class