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
in your code there are couple of lines missing to connect to cayenne. Check it out in this example code: Cayenne-MQTT-Arduino/ESP8266.ino at master · myDevicesIoT/Cayenne-MQTT-Arduino · GitHub
Also, don’t send data from main loop, Use inbuilt CAYENNE_OUT()
to send data at timed interval.
thank you
untill now I can not connect MQTT cayenne , although i used sample code. Cayenne-MQTT-Arduino/ESP8266.ino at master · myDevicesIoT/Cayenne-MQTT-Arduino · GitHub
I don’t know the reason why i can not connect them
add #define CAYENNE_DEBUG
in your code and check what is the error in the serial monitor.
Along with @shramik_salgaonkar suggestions I would also recommend obscuring the username/password for Cayenne and your wifi in the first screen shot.