ArduinoModbus - client.registerMaskWrite()

Description

Perform a “Mask Write Registers” operation for the specified address, AND mask and OR mask.

Syntax

int registerMaskWrite(int address, uint16_t andMask, uint16_t orMask);
int registerMaskWrite(int id, int address, uint16_t andMask, uint16_t orMask);

Parameters

  • 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

Returns

1 on success, 0 on failure.