Jump to content









Photo

Publishing a variable to data stream via MQTT

MQTT Arduino ESP8266

  • Please log in to reply
No replies to this topic

#1 kahlkritz

kahlkritz

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 01 December 2017 - 08:34 AM

Good day all

 

I followed the tutorial to publish sample data from an Arduino to the Carriots data stream via a MQTT broker. My issue has for a while now been that I can't seem to publish any data other than the sample data used in the tutorial. I would like to publish a variable measured by my ESP8266 (basically an Arduino Wi-Fi module), but everything I try, text or value, does not get published, even though the feedback given on the serial console says it has been published.

 

I suspect it has something to do with the string length that I am trying to publish, since I can post a string value as long as it is the same amount of characters as the sample data. Anything with more characters or less characters does not get published. It seems like such a trivial issue but I have tried just about everything.

I've altered the frame_json string as well as the data_json string. I've also substituted headers and payloads used in the http examples and that also did not work.

 

Thanks in advance

 

 

 







Also tagged with one or more of these keywords: MQTT, Arduino, ESP8266

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users