I am creating a system of 10 nodemcu(s) communicating and sharing data over painlessmesh. Each of these is powered by 240V to 3.3V power supplies. One of these nodes is designated to
- collect the data from the mesh
- disconect from the mesh
- connect with a given internet network via wifi
- send the data via a REST API
- reconnect to the mesh
This is done every 3 minutes.
My problem is that although the system works well (from sharing the data over the mesh to making the API request) for a few hours, later on the nodes start dropping, and once they do, they never join the network unless I power cycle them manually. I'd like to log all exceptions/errors (which will appear on the serial monitor) which might be leading to this behaviour.
PS: Happy to get any advice on the system architecture