Hello,
I have a web server that checks and displays sensor data and relay states. A few hours into operation though it hangs (few hours as it is never the same period of time - can vary from 2 to 12). I can ping the device from CMD, but it is inaccessible through the browser or through my software that sends requests via HTTP. I researched and tried different things, and as reboot of the device is not really preferable in my case, as it resets the relays to their initial state, I set to a refresh of the server by calling out server.begin() every 5 minutes. It crashed several times since last night when I implemented this. Sometimes it hangs for a while and comes back, sometimes I need to reset the Arduino.
I considered memory shortage, but since I create some arrays of data (non-dynamic) and constantly use them, without using strings or some other type of information that stacks up, I ruled this out as an option, though I can be wrong. Here is my sketch, could someone tell me please, what do I do wrong?
P.S. As I exceeded the 9000 character, the sketch is in the attachment.
table_firmware2.ino (24.9 KB)