Translations:Node-RED/52/en
Версия от 21:37, 20 октября 2022; Matveevrj (обсуждение | вклад) (Новая страница: «=== Sending commands === The '''mqtt out''' node is used to send a command to the controller via MQTT. In this case, the '''Topic''' field specifies the address of the mqtt-topic of the controller, in which the parameter must be written. Please note that at the end of the node address '''mqtt out''' you need to write <code>/on</code>, otherwise the parameter will not be written to the topic. For example, <code>/devices/wb-mrgbw-d-fw3_129/controls/RGB Strip/o...»)
Sending commands
The mqtt out node is used to send a command to the controller via MQTT. In this case, the Topic field specifies the address of the mqtt-topic of the controller, in which the parameter must be written. Please note that at the end of the node address mqtt out you need to write /on
, otherwise the parameter will not be written to the topic. For example, /devices/wb-mrgbw-d-fw3_129/controls/RGB Strip/on
. Read more on the MQTT.
To send a parameter to the mqtt out node, you can use the inject node.
- Drag the inject node to the workspace.
- Connect it to the input of the mqtt out node.
- Go to the settings of the inject node and set the Name of the node, the Variable Type and its Value. Click the Done button.