Jump to content

Recommended Posts

Posted

Есть ли возможность опубликовать сообщение в 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


 

Posted
~ # 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
~ #

не помогло :(

Posted

 

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

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

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

Posted
23 минуты назад, Zorch сказал:

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

mipsel выложили, mips скоро выложим.

  • 4 months later...
Posted (edited)
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

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...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.