Struggling with intermittent disconnections between my device and AWS loT Core, causing data loss

Hey guys @IoT Cloud i am struggling with intermittent disconnections between my device and AWS loT Core, causing data loss and inconsistencies. My device is using an ESP32 MCU and communicating with AWS loT Core via the MQTT protocol. I tried implementing a retry mechanism for failed connections and also adjusted the device's WiFi settings for better connectivity, what else can i try to resolve this issue?
Solution:
There is a mechanisms called data buffering, the objective is to buffer (save your data) when connectivity is lost and once connectivity is established you'll send this data again, i opened a topic in the code review section to discuss about this incident and how we should deal with it https://discord.com/channels/1130679493799977062/1242791883680518154
Jump to solution
5 Replies
electro_coco
electro_coco8mo ago
What u wana do first is use mqttx or mqtt explorer app with aws cert to see if you are connecting properly with them or not It happened with me i generated new certs and use them and my issue got resolved
Daniel kalu
Daniel kalu8mo ago
Generating new certificates is a good troubleshooting step, and I'll try it out, but when you generated new certificates, did you update them on both the device and AWS lot Core? And did you make any other changes besides updating the certificates?
electro_coco
electro_coco8mo ago
Yes u have to change cert of esp32 side as well
Solution
youcef_ali
youcef_ali8mo ago
There is a mechanisms called data buffering, the objective is to buffer (save your data) when connectivity is lost and once connectivity is established you'll send this data again, i opened a topic in the code review section to discuss about this incident and how we should deal with it https://discord.com/channels/1130679493799977062/1242791883680518154
Daniel kalu
Daniel kalu8mo ago
I'll make sure to follow these steps carefully and see if it resolves my issues thanks 🙏
Want results from more Discord servers?
Add your server