NEWS
Драйвер Mqtt + Arduino
-
После обновлнеия ничего не работает. Верните прошлую версия все отлично работало
-
После обновлнеия ничего не работает. Верните прошлую версия все отлично работало `
Не может ВСЁ не работать. Я поменял всего 2 строчки.-
Если маска не задана, то выдавать все состояния
-
Поменял имена топиков
Можно посмотреть здесь: https://github.com/ioBroker/ioBroker.mq … 631839fa1a
-
-
После обновлнеия ничего не работает. Верните прошлую версия все отлично работало `
Не может ВСЁ не работать. Я поменял всего 2 строчки.-
Если маска не задана, то выдавать все состояния
-
Поменял имена топиков
Можно посмотреть здесь: https://github.com/ioBroker/ioBroker.mq … 631839fa1a `
Раньше такая строка отправлялась от брокера: myhome/Bedroom/ServoСейчас: mqtt/0/myhome/Bedroom/Servo
Предлагаю вернуть как было
Я так понял префикс добавили, може предусмтореть настройку без префикса)
-
-
Попробуй снова
-
-
Да. Так и есть.
-
Отключил клиентов, подключил не все подписываются, уже е службу перезапускал и ардуину - не подписывается.
И вообще как то тяжковато подписка повторяется после рестарта драйвера в брокере
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
! mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
266_666666.png -
> mqtt-0 2015-05-16 17:07:55 info Client [undefined] closed
Ну знаешь "undefined" как то подозрительно выглядит. -
Столкнулся с проблемкой, Если до подписи клиентом не отправить значение то значения скидываются на брокере в 0
Походу кеш браузера был(((
-
Навалился непонятно откуда мусор:
Как его теперь удалить?
266_32432423423423.png -
Навалился непонятно откуда мусор:
Как его теперь удалить? `
Может как то криво клиент "публикует" данные? -
Навалился непонятно откуда мусор:
Как его теперь удалить?
Может как то криво клиент "публикует" данные?
Может быть был глюк. но почему нету кнопки удаления переменной? -
Навалился непонятно откуда мусор:
Как его теперь удалить?
Может как то криво клиент "публикует" данные?
Может быть был глюк. но почему нету кнопки удаления переменной? `
Удалить можно только узел без детей… А там ещё много уровней. -
Удалить можно только узел без детей… А там ещё много уровней. `
Дети есть присматрись там вместо кнопок полоски отображаются -
Удалить можно только узел без детей… А там ещё много уровней.
Дети есть присматрись там вместо кнопок полоски отображаются
Я советую удалить mqtt и установить заново. Сохрани настройки только. -
Я советую удалить mqtt и установить заново. Сохрани настройки только. `
Удалил, поставил все ок.Что то заглючило. Появилась одна мусорная переменная. Попытался снова удалить mqtt не удалаяется.
! $ ./iobroker del mqtt.0
! ERROR:
! events.js:72
! throw er; // Unhandled 'error' event
! ^
! Error: listen EADDRINUSE
! at errnoException (net.js:905:11)
! at Server._listen2 (net.js:1043:14)
! at listen (net.js:1065:10)
! at Server.listen (net.js:1139:5)
! at _initWebServer (c:\ioBroker\node_modules\iobroker.js-controller\lib\objectsInMemServer.js:958:24)
! at c:\ioBroker\node_modules\iobroker.js-controller\lib\objectsInMemServer.js:139:9
! at new ObjectsInMemServer (c:\ioBroker\node_modules\iobroker.js-controller\lib\objectsInMemServer.js:146:7)
! at null._onTimeout (c:\ioBroker\node_modules\iobroker.js-controller\lib\setup.js:1233:27)
! at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
! ERROR: process exited with code 8Это после рестарта Web и Mqtt:
! mqtt-0 2015-06-02 16:34:13 info 2
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 info Client [undefined] closed
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:18 debug statesDB connected
! mqtt-0 2015-06-02 16:34:18 debug objectDB connected
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
! mqtt-0 2015-06-02 16:34:13 warn [undefined] Error: read ECONNRESET
266_2342342342.png -
Удалил сначала WEB потом MQTT.
-
Удалил сначала WEB потом MQTT. `
Я почему то думал, что адаптер WEB и MQTT друг от друга не зависят)) -
Нашел косяк в работе драйвера, точнее глюк.
Стенд у меня получился такой:
"Ардуина71" подписывается на топик "/common/led". На 6-ой ноге светодиод, должен включаться/отключаться.
"Ардуина72" публикует в топик "/common/led" в зависимости от состояния кнопок (баттон1 включить, баттон2 отключить).
По идее если нажать кн1 на "арудуина72" (передний фронт), то светодиод на "ардуине71" должен загореться, если нажать кн2 (передний фронт) - потухнуть.
Но на деле лишь иногда зажигается и гастет, т.е. почти не срабатывает…
В логе видно, что брокер иногда (почти вседа) не отправляет данные (за символами // - мои коменты
!
mqtt-0 2015-06-03 21:28:43 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 mqtt-0 2015-06-03 21:28:43 info Send to client [arduinoPLC71] "common/led": 0 mqtt-0 2015-06-03 21:28:43 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 mqtt-0 2015-06-03 21:28:43 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 mqtt-0 2015-06-03 21:28:42 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 mqtt-0 2015-06-03 21:28:41 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 1 //<-- опубликовали "1", и ничего.... mqtt-0 2015-06-03 21:28:41 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 1 //<-- нажал кн1 (передний фронт) mqtt-0 2015-06-03 21:28:40 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 //<-- отпустил кн2 mqtt-0 2015-06-03 21:28:40 info Send to client [arduinoPLC71] "common/led": 0 //<-- и вдруг оба-на - светодиод потух! mqtt-0 2015-06-03 21:28:40 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 //<-- опубликовали "0" mqtt-0 2015-06-03 21:28:40 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 //<-- нажал кн2 (передний фронт) mqtt-0 2015-06-03 21:28:39 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 //<-- отпустил кн1 mqtt-0 2015-06-03 21:28:39 info Send to client [arduinoPLC71] "common/led": 1 //<-- и вдруг оба-на - светодиод загорелся! mqtt-0 2015-06-03 21:28:39 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 1 //<-- опубликовали "1" mqtt-0 2015-06-03 21:28:39 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 1 //<-- нажал кн1 (передний фронт) mqtt-0 2015-06-03 21:28:33 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 //<-- отпустил кн2 mqtt-0 2015-06-03 21:28:32 info Send to client [arduinoPLC71] "common/led": 0 //<-- и вдруг оба-на - светодиод потух! mqtt-0 2015-06-03 21:28:32 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 //<-- опубликовали "0" mqtt-0 2015-06-03 21:28:32 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 //<-- нажал кн2 (передний фронт) mqtt-0 2015-06-03 21:28:31 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 //<-- отпустил кн1 mqtt-0 2015-06-03 21:28:31 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 1 //<-- опубликовали "1" mqtt-0 2015-06-03 21:28:31 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 1 //<-- нажал кн1 (передний фронт) mqtt-0 2015-06-03 21:28:30 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 //<-- отпустил кн2 mqtt-0 2015-06-03 21:28:30 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 //<-- опубликовали "0" mqtt-0 2015-06-03 21:28:30 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 //<-- нажал кн2 (передний фронт) mqtt-0 2015-06-03 21:28:29 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 mqtt-0 2015-06-03 21:28:29 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 1 mqtt-0 2015-06-03 21:28:29 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 1 mqtt-0 2015-06-03 21:28:28 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 mqtt-0 2015-06-03 21:28:27 info Send to client [arduinoPLC71] "common/led": 0 mqtt-0 2015-06-03 21:28:27 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 mqtt-0 2015-06-03 21:28:27 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 mqtt-0 2015-06-03 21:28:26 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 mqtt-0 2015-06-03 21:28:26 info Send to client [arduinoPLC71] "common/led": 1 mqtt-0 2015-06-03 21:28:26 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 1 mqtt-0 2015-06-03 21:28:26 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 1 mqtt-0 2015-06-03 21:28:25 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 mqtt-0 2015-06-03 21:28:25 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 mqtt-0 2015-06-03 21:28:25 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 mqtt-0 2015-06-03 21:28:25 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 mqtt-0 2015-06-03 21:28:25 info Send to client [arduinoPLC71] "common/led": 0 mqtt-0 2015-06-03 21:28:25 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 mqtt-0 2015-06-03 21:28:25 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 mqtt-0 2015-06-03 21:28:24 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 mqtt-0 2015-06-03 21:28:23 info Send to client [arduinoPLC71] "common/led": 1 mqtt-0 2015-06-03 21:28:23 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 1 mqtt-0 2015-06-03 21:28:23 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 1 mqtt-0 2015-06-03 21:28:22 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 mqtt-0 2015-06-03 21:28:22 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 mqtt-0 2015-06-03 21:28:22 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 mqtt-0 2015-06-03 21:28:21 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 mqtt-0 2015-06-03 21:28:20 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 1 mqtt-0 2015-06-03 21:28:20 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 1 mqtt-0 2015-06-03 21:28:19 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 mqtt-0 2015-06-03 21:28:19 info Send to client [arduinoPLC71] "common/led": 0 mqtt-0 2015-06-03 21:28:19 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 mqtt-0 2015-06-03 21:28:19 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 mqtt-0 2015-06-03 21:28:18 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 !
50_plc2_control_dido.zip
50_plc3.zip -
Нашел косяк в работе драйвера, точнее глюк.
Стенд у меня получился такой:
"Ардуина71" подписывается на топик "/common/led". На 6-ой ноге светодиод, должен включаться/отключаться.
"Ардуина72" публикует в топик "/common/led" в зависимости от состояния кнопок (баттон1 включить, баттон2 отключить).
По идее если нажать кн1 на "арудуина72" (передний фронт), то светодиод на "ардуине71" должен загореться, если нажать кн2 (передний фронт) - потухнуть.
Но на деле лишь иногда зажигается и гастет, т.е. почти не срабатывает…
В логе видно, что брокер иногда (почти вседа) не отправляет данные (за символами // - мои коменты
!
mqtt-0 2015-06-03 21:28:43 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 mqtt-0 2015-06-03 21:28:43 info Send to client [arduinoPLC71] "common/led": 0 mqtt-0 2015-06-03 21:28:43 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 mqtt-0 2015-06-03 21:28:43 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 mqtt-0 2015-06-03 21:28:42 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 mqtt-0 2015-06-03 21:28:41 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 1 //<-- опубликовали "1", и ничего.... mqtt-0 2015-06-03 21:28:41 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 1 //<-- нажал кн1 (передний фронт) mqtt-0 2015-06-03 21:28:40 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 //<-- отпустил кн2 mqtt-0 2015-06-03 21:28:40 info Send to client [arduinoPLC71] "common/led": 0 //<-- и вдруг оба-на - светодиод потух! mqtt-0 2015-06-03 21:28:40 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 //<-- опубликовали "0" mqtt-0 2015-06-03 21:28:40 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 //<-- нажал кн2 (передний фронт) mqtt-0 2015-06-03 21:28:39 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 //<-- отпустил кн1 mqtt-0 2015-06-03 21:28:39 info Send to client [arduinoPLC71] "common/led": 1 //<-- и вдруг оба-на - светодиод загорелся! mqtt-0 2015-06-03 21:28:39 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 1 //<-- опубликовали "1" mqtt-0 2015-06-03 21:28:39 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 1 //<-- нажал кн1 (передний фронт) mqtt-0 2015-06-03 21:28:33 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 //<-- отпустил кн2 mqtt-0 2015-06-03 21:28:32 info Send to client [arduinoPLC71] "common/led": 0 //<-- и вдруг оба-на - светодиод потух! mqtt-0 2015-06-03 21:28:32 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 //<-- опубликовали "0" mqtt-0 2015-06-03 21:28:32 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 //<-- нажал кн2 (передний фронт) mqtt-0 2015-06-03 21:28:31 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 //<-- отпустил кн1 mqtt-0 2015-06-03 21:28:31 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 1 //<-- опубликовали "1" mqtt-0 2015-06-03 21:28:31 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 1 //<-- нажал кн1 (передний фронт) mqtt-0 2015-06-03 21:28:30 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 //<-- отпустил кн2 mqtt-0 2015-06-03 21:28:30 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 //<-- опубликовали "0" mqtt-0 2015-06-03 21:28:30 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 //<-- нажал кн2 (передний фронт) mqtt-0 2015-06-03 21:28:29 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 mqtt-0 2015-06-03 21:28:29 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 1 mqtt-0 2015-06-03 21:28:29 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 1 mqtt-0 2015-06-03 21:28:28 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 mqtt-0 2015-06-03 21:28:27 info Send to client [arduinoPLC71] "common/led": 0 mqtt-0 2015-06-03 21:28:27 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 mqtt-0 2015-06-03 21:28:27 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 mqtt-0 2015-06-03 21:28:26 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 mqtt-0 2015-06-03 21:28:26 info Send to client [arduinoPLC71] "common/led": 1 mqtt-0 2015-06-03 21:28:26 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 1 mqtt-0 2015-06-03 21:28:26 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 1 mqtt-0 2015-06-03 21:28:25 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 mqtt-0 2015-06-03 21:28:25 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 mqtt-0 2015-06-03 21:28:25 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 mqtt-0 2015-06-03 21:28:25 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 mqtt-0 2015-06-03 21:28:25 info Send to client [arduinoPLC71] "common/led": 0 mqtt-0 2015-06-03 21:28:25 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 mqtt-0 2015-06-03 21:28:25 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 mqtt-0 2015-06-03 21:28:24 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 mqtt-0 2015-06-03 21:28:23 info Send to client [arduinoPLC71] "common/led": 1 mqtt-0 2015-06-03 21:28:23 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 1 mqtt-0 2015-06-03 21:28:23 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 1 mqtt-0 2015-06-03 21:28:22 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 mqtt-0 2015-06-03 21:28:22 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 mqtt-0 2015-06-03 21:28:22 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 mqtt-0 2015-06-03 21:28:21 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 mqtt-0 2015-06-03 21:28:20 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 1 mqtt-0 2015-06-03 21:28:20 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 1 mqtt-0 2015-06-03 21:28:19 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 0 mqtt-0 2015-06-03 21:28:19 info Send to client [arduinoPLC71] "common/led": 0 mqtt-0 2015-06-03 21:28:19 info Client [arduinoPLC72] publishes "mqtt.0.common.led"(number): 0 mqtt-0 2015-06-03 21:28:19 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button2"(number): 1 mqtt-0 2015-06-03 21:28:18 info Client [arduinoPLC72] publishes "mqtt.0.arduinoPLC72.button1"(number): 0 !
`
т.е. у тебя два разных клиента подписались на один топик?