I have asked this question in a different format before - but still have the same problem. Perhaps I didn't state the problem clearly, so here goes again.
My code runs fine (using ESP8266) and includes the following:
Serial.println("Line 219");
wifiManager.autoConnect(); // System waits here for a network to be selected!
Serial.println("Line 223");
The response I get is:
Line 219
*WM:
*WM: AutoConnect
*WM: Connecting as wifi client...
*WM: Status:
*WM: 0
*WM: No saved credentials
*WM: Connection result:
*WM: 0
*WM:
*WM: Configuring access point...
*WM: ESP784531
*WM: AP IP address:
*WM: 192.168.4.1
*WM: HTTP server started
In other words, having found no credentials it is waiting for the user to input them.
Once I input credentials all is OK.
My problem is that I'd like to tell the user to do something!
That is, that the system is waiting for HIM to input credentials.
What happens is that the program hangs up after *WM: HTTP server started while it simply waits for user input.
I would like to test for this state, and then prompt the user to do something.
I hope that this can be done, Someone please respond!!
Thanks bilh64 for the confirmation.
However, I am relatively new to all this stuff and have not been able to find the example. Could you please give me a further clue?
On A Windows PC, under your Documents folder, you have an Arduino folder and then a library folder where all your libraries will be.
...\Documents\arduino\libraries\WiFiManager\examples\AutoConnectNonBlocking\AutoConnectNonBlocking.ino
PS -
After a bit of "googling" I came across two possible solutions - both using the "non-blocking" commands.
However my IDE does not recognize the following:
wm.setConfigPortalBlocking(false);
wm.setSaveParamsCallback(saveParamsCallback);
Any ideas as to what I am doing wrong?
icopied the examples from a site on GitHub.
Go to library manager (Sketch->Include Library->Manage Libraries) and look for WiFiManager in the list. I have version 2.0.12-beta by tablatronix which has non-blocking code.
After much trying, I finally found that all along I have installed'
tzapu Version 2,0,13 beta.
Perhaps it got updated while I was trying other things/
Anyway, the example: ZutoConnectNonBlocking now seems to compile and work as my project.
I guess that the ball is now in my court!
I want to thank you wholeheartedly for your help and suggestions. I think I would never have found this on my own.
Thanks again -
Matt