Hi Frank-
That sounds like a frustrating issue. Has anything else changed with the device you’re using? How’s your wifi signal? Have you had this issue with multiple devices or just one?
we did change around the device os version as we are preparing p1 end-of-life (going back to 2.1 because of the green-led problem)
we have seen this with multiple devices. wifi cannot be a problem? it is the particle cloud that should detect the device not being online - that does not seem to work anymore?
It will take longer for the P2 to detect it’s offline, two times the UDP keep-alive value, which should 25 seconds, so around one minute. It should not take a day.
The P1 uses TCP transport, which has a 10 second ping interval. So that should detect offline faster,
If the P2 device went offline gracefully the interval will be shorter. If it was just unplugged or the Internet went away, it should still be around one minute.
I was able to reproduce the problem you are seeing with the P1/Photon. I sort of know why it’s happening, but I’m not positive it was intentional. Some more investigation will be required, but if you have a workaround, that’s probably the best solution for now.
There was case where if a TCP device (Photon/P1) was moved to a different server, the old server would emit an offline event even though the device is still online, but on a different server; this was fixed. When I unplug a TCP device now, the cloud is detecting that the device disconnected, but not sending the offline, which I can see from the internal cloud logs from my test device. This seems wrong if the device is actually offline, but I’m not a cloud engineer, which is why more investigation is required.