I would like my photon to have the following features:
-
when the WiFi is down, I want it to be able to listen if the WiFi is up again.
-
also, during this time that the WiFi is down, I want it to be able to acquire new credentials with the use of the Particle mobile app.
-
Before anything, I call WiFi.useDynamicIP();
-
When I change the password to my WiFi, the photon gets disconnected from the WiFi, I get notified from the event: “network_status_disconnected”.
-
Then I enter to the listen mode with WiFi.listen() function.
-
I then change again the WiFi password to the old one and my photon enters the state of the fast green light, which, from the documentation, I see that it means: “LED_SIGNAL_NETWORK_DHCP Getting network address”.
Problem is that it stays there forever.
I am working with threads.
Please help!!!
Thanks,
Vasilis.