ArduinoModbus : Modbus Client class
Perform a "Mask Write Registers" operation for the specified address, AND mask and OR mask.
int registerMaskWrite(int address, uint16_t andMask, uint16_t orMask);
int registerMaskWrite(int id, int address, uint16_t andMask, uint16_t orMask);
id (slave) - id of target, defaults to 0x00 if not specified
address - address to use for operation
andMask - AND mask to use for operation
orMask - OR mask to use for operation
1 on success, 0 on failure.
ModbusClient Class