Write

The Modbus module supports writes. In order to do a single write operation, a separate direct method is available.

The tag id that is refered to needs to point to a modbus tag, that has write access enabled. It is not necessary to specify the slave id, since it is given implicit in the tag configuration.

Method Name: Write

Payload:

{
  "measurement": {
       "id": "tagId",
       "startTimestamp": "<timestamp>",
       "type": "Analog",
       "value": "<value>"
   },
   "verifyWrite": false
}

If verifyWrite is set, then the value write will be confirmed by a following read, to ensure that the write has been executed successfully.

Last updated

Was this helpful?