Перейти к содержанию

Навигация

MQTT: различия между версиями

Нет изменений в размере ,  11 месяцев назад
Строка 292: Строка 292:
try_private false
try_private false
notifications true
notifications true
notification_topic /client/wb_6/bridge_status
notification_topic /client/wb_7/bridge_status
start_type automatic
start_type automatic
topic /# both 0 "" user_xxxxxx
topic /# both 0 "" user_xxxxxx
Строка 303: Строка 303:
service mosquitto restart
service mosquitto restart
</syntaxhighlight>
</syntaxhighlight>
#: Потребуется подождать некоторое время пока брокер <code>mosquitto</code> сможет организовать соединение. Подписавшись на контроллере к топику <code>/client/wb_6/bridge_status</code> можно увидеть статус соединения.
#: Потребуется подождать некоторое время пока брокер <code>mosquitto</code> сможет организовать соединение. Подписавшись на контроллере к топику <code>/client/wb_7/bridge_status</code> можно увидеть статус соединения.
#:<syntaxhighlight lang="bash">
#:<syntaxhighlight lang="bash">
mosquitto_sub -v -t "/client/wb_6/bridge_status"  
mosquitto_sub -v -t "/client/wb_7/bridge_status"  
/client/wb_6/bridge_status 0
/client/wb_7/bridge_status 0
/client/wb_6/bridge_status 1
/client/wb_7/bridge_status 1
</syntaxhighlight>
</syntaxhighlight>


translator, wb_editors
4180

правок