ArduinoModbus - modbusServer.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.