ArduinoModbus : Modbus Server class

discreteInputWrite()

Description

Write the value of the server's Discrete Input for the specified address and value.

Syntax

int discreteInputWrite(int address, uint8_t value);

Parameters

address - address to use for operation
Value - discrete input value to write

Returns

1 on success, 0 on failure.

See also

ModbusServer class