wb_editors
893
правки
м (→Настройка своего брокера MQTT: Форматирование) |
Brainroot (обсуждение | вклад) |
||
Строка 389: | Строка 389: | ||
Создайте файл конфигурации моста: | Создайте файл конфигурации моста: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
cat << EOF >>/etc/mosquitto/ | cat << EOF >>/etc/mosquitto/conf.d/bridge1.conf | ||
connection bridge1 | |||
#address of server | |||
address 10.0.0.105 | |||
notifications true | |||
notification_topic /clientnotification/bridge1_status | |||
remote_username test | |||
remote_password test11test | |||
topic /temp1/# both 2 /devices /controller | |||
EOF | EOF | ||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash"> | |||
</syntaxhighlight> | </syntaxhighlight> |