ArduinoModbus : Modbus Server class

writeDiscreteInputs()

Description

Write values to the server's Discrete Inputs for the specified address and values.

Syntax

int writeDiscreteInputs(int address, uint8_t values[], int nb);

Parameters

address - address to use for operation
values - array of discrete inputs values to write
nb - number of discrete inputs to write

Returns

1 on success, 0 on failure.

See also

ModbusServer class