So there’s already a very long thread about this here: https://community.particle.io/t/long-term-photon-connection-stability/13925/222 which was finally locked by a Particle employee (no1089) with the suggestion that I open a support ticket about my Photon failing to reconnect to the web after losing a connection (but if you restart the device it connects instantly). So I did that.
And was told to go to the communiy forums and post my question there. So I’m baaaack. And I still have no clue why this is happening, nor how to figure it out. I’m not calling SYSTEM_MODE and haven’t changed my code recently so I have to assume that there is something in the Particle 1.52 firmware that is hanging.
But I have no way of identifying that. I considered adding debugging print lines to my code (like I used to do back in the 70’s with my punch card Fortran programs) but it seems like at this late date there ought to be something more sophisticated available.
Even if I find that my code stopped running at line nnnn, the failure is in whatever Particle calls their wi-fi reconnect routine. It’s not a signal strength issue. I see this happen even with the Photon sitting on my desk four feet from the router.
It was also suggested that interrupts could be causing this. But if that’s the case then the Particle is useless for controlling a weather station so I might as well give up.
I’m not even asking for a solution, but how to go about finding the cause of this vexing problem.