Currently, I am trying to run a simple Node.js script on multiple raspberry pi’s. These are located on different locations. I am having issues with wifi connectivity. The devices properly connect after they are powered. They stay on for the first couple of hours. For some pi’s this is 5 hours, for some 2 days. After that, they disconnect from the wifi network. They are no longer connected in my dashboard which makes remote debugging difficult.
At first, I thought the issue was that it did not reconnect after the wifi went down (e.g. router restart or something). But when I unplugged my network, turned it back on and waited a while it came back online.
Then I figured it might be the wifi-connect module. The issue occured more for people that set up through hotspot mode. However, after handing out new devices that had the wifi configured from in the image, the issue was still there.
I’m not doing anything special. The issue even occurs when I run the simple express example.
Anybody any suggestions? Also suggestions on how to debug this would be helpful.