Hi,
Im using SYSTEM_MODE(MANUAL);
and run this at the end of my loop:
if(!WiFi.ready()){WiFi.off(); Serial.print("wifi off ");}
When I turn the wifi source off on my hotspot/router, the photon does not change to white but blinks orange twice and then green rapidly despite telling it to turn wifi.off.
If the wifi remains off and I reset the photon it blinks green for a while and then white (as it should).
But again, if I bring the wifi back and let the photon connect to it and then shut it off, the photon blinks cyan instead of white, forever.
I need for the device to be available as much possible since I am reading a sensor several times per second.
Scanning for wifis takes about 1 second, which is acceptable if I do it only once every minute or two, but when it blinks green or cyan, the code freezes for several seconds.
thanks