ArduinoModbus : Modbus Server class

holdingRegisterRead()

Description

Perform a "Read Holding Registers" operation for a single holding register.

Syntax

long holdingRegisterRead(int address);
long holdingRegisterRead(int id, int address);

Parameters

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

Parameters

holiding register value on success, -1 on failure.

See also

ModbusServer class