Все переводы
Введите имя сообщения для показа всех доступных переводов.
Найдено 2 перевода.
Сообщение | Текущий текст |
---|---|
ист. английский (en) | === 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/on</code>. Read more on the [[MQTT | MQTT]]. <gallery mode="packed" heights="150px" caption="Configuring nodes to work with MQTT"> Image: NodeRed_mqtt4.jpg | '''mqtt in''' node configuration example Image: mqtt_out_no.jpg | '''mqtt out''' node setup example Image: NodeRed_mqtt1.jpg | Communication via MQTT in Node-Red </gallery> 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. <gallery mode="packed" heights="130px"> Image: Inject1.jpg | An example of '''inject''' node settings for controlling a discrete parameter Image: Inject2.jpg | '''inject''' node retry period setting field </gallery> <gallery mode="packed" heights="100px"> Image: Node_inject.jpg | An example of using the '''inject''' node </gallery> |
ист. русский (ru) | === Отправка команд === Для отправки команды контроллеру по MQTT используется нода '''mqtt out'''. При этом в поле '''Topic''' указывается адрес mqtt-топика контроллера, в который необходимо записать параметр. Нужно учитывать, что в конце адреса ноды '''mqtt out''' нужно написать <code>/on</code>, иначе параметр в топик не запишется. Например, <code>/devices/wb-mrgbw-d-fw3_129/controls/RGB Strip/on</code>. Подробнее читайте на странице [[MQTT | MQTT]]. <gallery mode="packed" heights="150px" caption="Настройка нод для работы с MQTT"> Image: NodeRed_mqtt4.jpg | Пример настройки ноды '''mqtt in''' Image: mqtt_out_no.jpg | Пример настройки ноды '''mqtt out''' Image: NodeRed_mqtt1.jpg | Обмен данными через MQTT в Node-Red </gallery> Для отправки параметра в ноду '''mqtt out''' можно использовать ноду '''inject'''. #Перетащите ноду '''inject''' в рабочую область. #Подключите ее ко входу ноды '''mqtt out'''. #Зайдите в настройки ноды '''inject''' и задайте ''Имя'' ноды, ''Тип переменной'' и ее ''Значение''. Нажмите кнопку '''Done'''. <gallery mode="packed" heights="130px"> Image: Inject1.jpg | Пример настроек ноды '''inject''' для управления дискретным параметром Image: Inject2.jpg | Поле настройки периодов повторения отправки ноды '''inject''' </gallery> <gallery mode="packed" heights="100px"> Image: Node_inject.jpg | Пример использования ноды '''inject''' </gallery> |