Jump to content

Публикация сообщения в MQTT


Recommended Posts

Есть ли возможность опубликовать сообщение в MQTT из keenetic bash? 

что то врооде 

mosquitto_pub -d -t topic -m "message" -h 192.168.1.5 -p 1883

Поставил 

opkg install mosquitto mosquitto-client libmosquitto

Находит по mosquitto TAB: 

mosquitto      mosquitto_pub  mosquitto_sub
~ # mosquitto


но при попытке запуска пишет:

~ # mosquitto_pub
-sh: mosquitto_pub: not found


 

Link to comment
Share on other sites

~ # opkg install mosquitto-client-ssl
Package mosquitto-client-ssl (1.6.2-1) installed in root is up to date.
~ # mosquitto_pub -d -t topic -m "message" -h 192.168.1.5 -p 1883
-sh: mosquitto_pub: not found
~ #

не помогло :(

Link to comment
Share on other sites

 

39 минут назад, zyxmon сказал:

Ошибка в пакете (не передаются правильные флаги линковки). Исправим.

Круто! когда ждать?

Link to comment
Share on other sites

  • 4 months later...
mosquitto_sub -h 192.168.1.1 -p 1883 -v -t "/omni/#"
Unable to connect (Unknown error.).

Установил mosquitto-client-nossl, ошибка непонятная, кто-то сталкивался??? 

установил c ssl - все заработало

 

Edited by Alex Tammat
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...