Databoom allows the remote control of MQTT devices. A MQTT command consists in the publication of a customized message on the default topic <project>/<device token>/commands or on a topic customized by the user.
The MQTT client must be appropriately configured so it can correctly interpretate the commands received on the topic and execute them.
For a correct configuration of a MQTT device refert to the article MQTT. A MQTT device is commandable if all the fields (Projects, Topic where publish data and Topic where it's possible to recieve informations from Databoom) are filled.
In MQTT device signals edit page it is possible to add orders with different templates and publishing topics. Each order can be distinguished by adding a description and an icon.
Enable scaling option applies signal rescaling, if set, to orders values.
The template allows to specify the data format to forward. To indicate the value position in the payload, use the keyword $VALUE$ that will be replaced by the value inserted from the widget. It is also possible to specify whether to convert the value in hexadecimal with the corresponding checkbox.
Default topic is <project>/<device token>/commands, by checking the checkbox Custom topic it is possible to manually add a topic. It is possible to add more topics to a single order.
Forwarding a command
It is possible to send commands from the Signals list and the Signal detail widgets. Once commands visualization has been enabled in widget menu, orders buttons will be shown, if the device is appropriately configured.
Orders forwarding consists in data publication on the commands topic, is therefore not possible having a feedback on the actual value update. Depending on the type of device used as MQTT client, wait the proper time before reloading the widget and see the updated value.