Skip to content

Using Settings Configuration API

Corey Thompson edited this page Jan 21, 2023 · 2 revisions

Publishing commands

Commands are requests for action to occur on another client. Command topics follow the pattern below:

cmd/[app]/[device]/[parameter-name]/[request-type]

#V2 As an example, the topic below contains a request to configure the acceleration time for VFD1:

cmd/vfdctl/vfd1/acceltime/coilWrite

The message body should contain a json object with a "value" key and an integer value:

{"value":40}

cmd/vfdctl/vfd1/acceltime/registerWrite

The message body should contain a json object with a "value" key and an integer value:

{"value":40}

#V1 As an example, the topic below contains a request to configure the acceleration time for VFD1:

cmd/vfdctl/vfd1/acceltime/config

The message body should contain a json object with a "value" key and an integer value:

{"value":40}

Publishing the sample object to the sample topic is expected to set the acceleration time of VFD1 to 40 seconds.

Example of reading telemetry and publishing commands

Clone this wiki locally