I have successfully setup NodeRED on an AWS EC2 instance and use MQTT as a means to communicate from/to my IoT devices (ESP8266/ESP32 at the moment).
I'm running a compiled version of Tasmota that has AWS IoT enabled.
What's strange is the MQTT nodes in my flow disconnect every few days (no pattern as far as I can tell). To reconnect I edit one of the nodes (same config for all MQTT nodes), edit the MQTT broker (simply 'edit' followed by 'update' without any changes) and deploy the flow. Nodes reconnect and everything works fine.
My Internet connection shouldn't come into play here as the NodeRED instance/app runs on AWS EC2 and connects to AWS IoT Core so this should be within the AWS Cloud environment as far as I can understand. Even if EC2 and the IoT Core were on different regions it's still AWS and any latency shouldn't influence this, right?
- Does NodeRED have the ability to automatically reconnect on dropping of a connection?
- What's the easiest way to diagnose this/what log files could I use to even start investigating?