Node-RED/en: различия между версиями
Matveevrj (обсуждение | вклад) (Новая страница: «=== Examples === WB-Nodes comes with examples for Apple HomeKit and Yandex.Alice, you can find them in '''Menu''' → '''Import''' → '''Examples'''. <gallery mode="packed" heights="200px" caption="Examples from WB-Nodes"> Image: WB-Nodes Examples 1.png | List of examples Image: WB-Nodes Examples 2.png | Example in workspace </gallery>») |
Matveevrj (обсуждение | вклад) (Новая страница: «To set up an MQTT connection in Node-RED, follow these steps: #Drag the '''mqtt in''' node to the workspace. #Enter the node configuration and click on the '''Pencil''' next to the '''Server''' field. #On the '''Connecting''' tab, set the broker address and port number. #:In the '''Name''' field, enter any server name. #:On the '''Security''' tab, you can specify the Username and Password to connect to the broker. If the Wiren Board controller acts as a brok...») Метки: правка с мобильного устройства правка из мобильной версии |
||
Строка 147: | Строка 147: | ||
</gallery> | </gallery> | ||
== | == Using the ''mqtt in'' and ''mqtt out'' nodes to interact with the Wiren Board == | ||
=== | === Connection setup === | ||
[[Image: NodeRed_mqtt_nodes.jpg |300px|thumb|right| | [[Image: NodeRed_mqtt_nodes.jpg |300px|thumb|right| MQTT Nodes in Node-Red ]] | ||
An alternative is to use the '''mqtt in''' and '''mqtt out''' nodes. To do this, you need the addresses of the topics, you can get them in the controller web interface on the [[Wiren Board Web Interface#mqtt-channels |MQTT-channels]] page. | |||
To set up an MQTT connection in Node-RED, follow these steps: | |||
# | #Drag the '''mqtt in''' node to the workspace. | ||
# | #Enter the node configuration and click on the '''Pencil''' next to the '''Server''' field. | ||
# | #On the '''Connecting''' tab, set the broker address and port number. | ||
#: | #:In the '''Name''' field, enter any server name. | ||
#: | #:On the '''Security''' tab, you can specify the Username and Password to connect to the broker. If the Wiren Board controller acts as a broker, this field must be left blank. | ||
# | #After filling in all the fields, click the '''Update''' button. The created broker can now be used to set up all connections. | ||
# | #Select the created broker from the list in the '''Server''' field. | ||
# | #Enter mqtt-topic address in the '''Topic''' field. | ||
# | #Press the '''Done''' button. | ||
По такому же принципу настраивается нода '''mqtt out'''. | По такому же принципу настраивается нода '''mqtt out'''. |