I was wondering if anybody else has been experiencing stability problems with the connectivity of their Photons. I have noticed that my Photons cannot connect to the cloud after some time (> 6-12 hours).
The Wifi signal in my office is not very strong and thus I notice the Photon blinking green and then cyan occassionally throughout the day. However, I have left my Photons running overnight for the past two days and have noticed some issues. My Photons are programmed to update my server with data every 10 seconds. Thus, I can remotely see if the Photons are online and posting data to my server. For the past two nights the data stream has stopped sometime overnight. Also, when I return to the office in the morning the Photons are in an endless loop trying to connect to the cloud (lots of blinking green and cyan but no “breathing cyan”). As soon as I press the reset button once the Photon can connect to wifi and the cloud.
I am running the release/photon_043 firmware on my Photons. I am running in SEMI_AUTOMATIC mode with some reconnection code running in my main loop. Additionally I am seeing some strange behavior when the Photon loses connection during the day when I am in the office. Sometimes I see the LED flashing green and the cyan without interruption to my connected peripherals. However, sometimes I see flashing red and I see that my code is restarting from the Setup function when the connection to the cloud is lost. I am confused by this behavior as the Photon is behaving as though it has been reset.
I would ideally like for my code to never reset to the setup() function while running. Also, I need the system to handle periodic wifi/cloud disconnections gracefully. I have tried to follow the prior postings regarding SEMI_AUTOMATIC mode but am still experiencing these issues.