-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example is starting configuration Portal twice #1371
Comments
` |
Hi, just another question so far: Can you please explain, why this seems to run in a loop?
and after that, it is starting again with:
The code is still the same as given in the Example sketch I've mentioned above... (with the fix provided in your previous comment) and what does the [x] after wm: mean? |
Yes, Its the logging level you are calling |
ok, thanks. it's just immediately visible after uploading the code to the board... then it is running throught 1) and immediately the second block happens. So, is the chip rebooting when it could not connect to an existing network / no network information can be found? |
ohh let me check if this is a bug, you have non blocking false but commented out process ? thats wrong |
process was just commented out for a test when I copied the code :) |
There is no other serial output between those? I mean it totally looks like its restarting where does this come from ? |
that's from this code...
|
Maybe, a bit more information: As you can see in my first post, it was first starting with the SSID I've set in the wm.autoConnect() - but then printing the serial.println from the "else" statement. in my tests, I've commented the wm.process() from the loop out, to see, if that might cause this behave - but it didn't change anything |
Oh yeah i ran this and it works fine. So no clue, sounds like your esp has to be rebooting |
hm... thanks for your test. |
Add a println in setup that outputs millis() it should be obvious is it restarts, could be a brownout all these should show startup code in serial though… so its odd i ran your example exactly |
hm... sorry... no reboot during the startup:
|
Oh thats so odd.. is this an esp32 ? |
Is this with process? |
nm, I have it reproduced here! |
I mean this is technically not a bug, you are just starting the CP twice, which should be ok say you want to change the credentials, but I am going to add a check and fail to avoid confusion. |
thanks :) - and sorry for not replying directly... (timezones^^) it is an WeMos D1 R2 (ESP8266), it was with wm.process() - but the same applies without wm.process(); The main idea (and I think that's what this cp is for was): So, yes, while it shouldn't be a big issue - it was confusing a bit :) |
Yeah the example is confusing and wrong, ill update it also. Not sure what was going on there, but yeah autoconnect will do that automatically unless you use the option to disable it. |
one more question: And would this work?
So, I would expect, the manager is trying to do an AutoConnect() to the saved network - and if this should fail, it will start the CP with the specified "autoSSID"... |
Hi, I am trying some of your examples provided here and it seems that I run into an issue...
Currently, the following Example Sketch was used: AutoConnectNonBlocking.ino
I am trying to create a configuration portal and a Wifi Network with a specific SSID...
When Running the sketch I can see, that this is working as expected in the Serial Monitor - but then, the code starts to repeate (before the Portal timeout has been reached) and then, it is using a different SSID than given in my code...
Here's the Output from the serial monitor
This is my current code (100% from the examples)
I am using an ESP 8266 based WeMos D1 R2 ... if that may help?!
The text was updated successfully, but these errors were encountered: