My project uses an ESP8266, and it runs just fine!
My problem is that the program includes the line"
wifiManager.autoConnect(); // System waits here for a network to be selected!
I would like to let the user know that connection has not yet been established.
In other words, I want to test the status of the wifiManager and do something while it has not successfully connected - and then proceed once there is a connection.
I have spent a lot of time in various searches, without success.
Maybe someone here can help me.
- Matt
depends on the library used. I am using <ESP8266WiFi.h> and this function.
If you replace delay (500) with what you want to do in the meantime, it should work. Make sure the code you want to execute is short in time and can not block the program.
Thanks for the suggestion - but this is NOT the answer!
My program goes through the steps of trying to configure, then the SM gives me the following lines:
*WM: Configuring access point...
*WM: ESP784531
*WM: AP IP address:
*WM: 192.168.4.1
*WM: HTTP server started
and then it simply waits for the user to call into it.
My problem is that I want to tell the user that it is waiting for him to do something.
Right now I get nothing other than the last line - and after I configure it all is OK.
Incidentally, I AM using <ESP8266WiFi.h>.