Pretty simple question but I couldn’t find the answer in the docs or on the forum: if the Photon is in blinking green mode (no WiFi connection), I would like to turn on one of my outputs.
I tried the following in both loop() and setup() but it didn’t work:
if(Particle.connected() == false)
Interestingly, when placed in loop(), it does print “not connected” a few times, but the LED I have connected to relayOut (D0) doesn’t turn on. I would think that there’s a proper way to do this, I just haven’t found it yet.