Case 1: I try to scan wifi after close hotspot because I would like to simulate lost connection. Then led on photon turns to blinking orange.And when I try scanning again.SSID is returning empty and stop working while scanning.
Case 2: Same as the case 1, but this time I’m not connect a photon with cloud. Everything can work fine and can scan SSID.
Have you tried tearing down cloud (
Particle.disconnect()) and WiFi (
WiFi.disconnect()) connection once you encounter the loss of connectivity?
Thanks you so much for your support. It can work.