On the Photon, calling WiFi.listen the first time succeeds, opens up the softAP, and flashes blue.
Calling WiFi.off, then WiFi.on, then WiFi.listen the second time fails. The LED continues breathing white and no softAP is opened.
Here is the code to replicate:
SYSTEM_MODE(MANUAL);
SYSTEM_THREAD(ENABLED);
void setup() {
WiFi.listen();
unsigned long timing = millis();
while (millis()-timing<8000) Particle.process();
WiFi.listen(false);
WiFi.off();
timing = millis();
while (millis()-timing<8000) Particle.process();
WiFi.on();
WiFi.listen();
}
void loop() {
Particle.process();
}
Help is appreciated, am I missing something?