Jump to content









Photo

Public stream to mqtt broker via mosquitto


  • Please log in to reply
No replies to this topic

#1 sagaardu

sagaardu

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 02 November 2018 - 11:32 AM

Hello, I am trying to publish streams through mqtt with mosquito but I do not know very well how I have to send the message content format Can you guide me a bit as it would be? mosquitto_pub -h 10.0.0.1 -t apykey/streams -u apykey -m temp

Hello, I am trying to publish streams through mqtt with mosquito but I do not know very well how I have to send the message content format Can you guide me a bit as it would be?

 

mosquitto_pub -h mqtt.altairsmartcore.com -t apykey/streams -u APIKEY -m '{'protocol': 'v2', 'device': 'ID MY DEVIDE', 'at': 'now', 'data': {'temp': 21, 'hum':58}}'






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users