Connection lost event

Hi all

Is there some kind of event available in the firmware for a connection drop?

Example: when the photon loses its connection with the wifi, I want to show a message on a OLED screen saying there is no internet connection.

I suppose this is possible since the photon itself will blink green when it has no connection.

Thanks!

The methods of the WiFi class could help you here. For example, in loop() you could call WiFi.ready() to determine if Wi-Fi is operational.
https://docs.particle.io/reference/firmware/core/#wifi

Also, the Particle class, like Particle.connected() to determine if you’re connected to the cloud.
https://docs.particle.io/reference/firmware/core/#particle-connected-