[SOLVED]Check if Photon is connected to cloud

Is there a function I can call in the firmware to check if the Photon is connected to the Cloud? I originally tried using Serial.print(WiFi.ready()) to see if the Photon is connected to the router, but I also need to know if I’m online or not.

Thanks!

1 Like

I figured it out. It’s Particle.connected(). Returns 1 if connected to Cloud, else 0.

1 Like