Connect Loadcell sensor with MQTT


#1

I’m meet some problems about connecting loadcell with MQTT Keyenne.
I don’t know the reason why my code arduino don’t connect with MQTT.
Please help me

3


#2

in your code there are couple of lines missing to connect to cayenne. Check it out in this example code: https://github.com/myDevicesIoT/Cayenne-MQTT-Arduino/blob/master/examples/Connections/ESP8266/ESP8266.ino
Also, don’t send data from main loop, Use inbuilt CAYENNE_OUT() to send data at timed interval.


#3

thank you


#4

untill now I can not connect MQTT cayenne , although i used sample code. https://github.com/myDevicesIoT/Cayenne-MQTT-Arduino/blob/master/examples/Connections/ESP8266/ESP8266.ino
I don’t know the reason why i can not connect them


#5

add #define CAYENNE_DEBUG in your code and check what is the error in the serial monitor.


#6

Along with @shramiksalgaonkar suggestions I would also recommend obscuring the username/password for Cayenne and your wifi in the first screen shot.