writeCoil()
Description
Write to the Coils register.
Syntax
node1.writeCoil(address, value) node2.writeCoil(address, size, buffer)
Parameters
node1/node2
: ModbusSlaveNode
object.
address
: Coils register address to be written.
value
: Single Coils register value to be written.
size
: The number of coil registers to be written.
buffer
: Copy the array data in the array space pointed to by buffer to the coil register.
Return
int
: If successful, return MODBUS_SUCCESS
, otherwise return EXCEPTION_CODE.
See Also
Library Reference
The text in the 86Duino reference is modified from the Arduino reference and is shared under the Creative Commons Attribution-Share Alike License 3.0 License. The code examples in the reference material have been released into the public domain.