I have 8 photons installed in a remote location. The photons are running with system thread enabled, and have been running for two weeks. All are claimed and were connected to the cloud.
They have identical code that pings a remote server and reports data. There is an application watchdog running which resets the photon if the application code has trouble.
After two weeks, two of the photons were flashing cyan rapidly with an intermittent red flash, and not connected to the cloud. The other six are working smoothly and are breathing cyan. All are on the same WiFi network. No app updates were being sent to the devices on the day they went offline.
I had one of the faulty devices sent to me.
I put the device on DFU mode and dumped its keys, and then used particle keys doctor to change the keys as is described here
This has not yet solved the problem.
What could be causing this to happen, and are there any changes I can make in code to prevent this from recurring?
My main concern isn’t fixing the faulty devices, but preventing this fault from developing in other photons that are or will be installed in the future , especially since I need them running smoothly in a far away location for weeks.
Thank you for your help!