wb_editors
890
правок
Brainroot (обсуждение | вклад) (Чуть дополнил) |
Brainroot (обсуждение | вклад) (→Брокер) |
||
Строка 195: | Строка 195: | ||
address 10.0.0.105 | address 10.0.0.105 | ||
notifications true | notifications true | ||
notification_topic / | notification_topic /client/ACAX3M6K/bridge1_status | ||
remote_username test | remote_username test | ||
remote_password test11test | remote_password test11test | ||
Строка 203: | Строка 203: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Для того чтобы отправить в influx '''все''' топики контроллера надо сделать | |||
<syntaxhighlight lang="bash"> | |||
cat << EOFcommand > /etc/mosquitto/conf.d/bridge1.conf | |||
connection bridge1 | |||
#address of server | |||
address 10.0.0.105 | |||
notifications true | |||
notification_topic /client/ACAX3M6K/bridge1_status | |||
remote_username test | |||
remote_password test11test | |||
topic /# both 2 /devices /client/ACAX3M6K/devices | |||
EOFcommand | |||
</syntaxhighlight> | |||
''Замените параметры (адрес, топик) на свои'' | ''Замените параметры (адрес, топик) на свои'' | ||