translator, wb_editors
4539
правок
Matveevrj (обсуждение | вклад) |
Matveevrj (обсуждение | вклад) |
||
Строка 292: | Строка 292: | ||
try_private false | try_private false | ||
notifications true | notifications true | ||
notification_topic /client/ | 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/ | #: Потребуется подождать некоторое время пока брокер <code>mosquitto</code> сможет организовать соединение. Подписавшись на контроллере к топику <code>/client/wb_7/bridge_status</code> можно увидеть статус соединения. | ||
#:<syntaxhighlight lang="bash"> | #:<syntaxhighlight lang="bash"> | ||
mosquitto_sub -v -t "/client/ | mosquitto_sub -v -t "/client/wb_7/bridge_status" | ||
/client/ | /client/wb_7/bridge_status 0 | ||
/client/ | /client/wb_7/bridge_status 1 | ||
</syntaxhighlight> | </syntaxhighlight> | ||