ArduinoModbus : Modbus Server class

coilRead()

Description

Perform a "Read Coils" operation for the specified address for a single coil.

Syntax

int coilRead(int address);
int coilRead(int id, int address);

Parameters

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

Returns

coil value on success, -1 on failure.

See also

ModbusServer class