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

Навигация

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

277 байт добавлено ,  3 года назад
Строка 389: Строка 389:
Создайте файл конфигурации моста:
Создайте файл конфигурации моста:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
cat << EOF >>/etc/mosquitto/mosquitto.conf
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>
wb_editors
884

правки