Photon losing WiFi connection after 4 hrs

The first thing I’d always recommend with “delayed” issues is to get rid of all uses of String where possible.
Heap fragmentation builds up slowly and may have unexpected effects. Best case you get a SOS panic reset, but in other cases tasks just hang indefinetly.

Try going with char[] and char* wherever possible.

1 Like