-
Notifications
You must be signed in to change notification settings - Fork 2k
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
DNS lookups fail if config portal was up. #688
Comments
Cannot reproduce
|
Can you add a |
only this I could find with this offer_error is this |
I'll give the above print a try when I get home. EDIT: i did notice that:
was started a second time as the config portal was exiting.... |
ok let me enable debugging and see if mine does also , I think that happens when you restart sta or change modes. Ill see if its related |
I tried it with sta failing and saved, both work, although I did get 1 error, probably a timing issue, Might be a lib, bug, let me know which esp version you are compiling when you can
|
I'm getting "STA+AP" - even if I add Adding a 30 second timeout yields this where it fails a few times then says its connected and starts working.
|
And adding |
Can you test one more thing? |
Still fails. (autoconnect is true) Found also that After
Results:
|
Thats because there was a bug and I had to remove this // WiFi_Mode(_usermode); // restore users wifi mode, BUG https://github.com/esp8266/Arduino/issues/4372 |
How did you output this ?
|
Also it looks like your lookup failures have changed to a different error.. hmm |
I'm using Debug port: Serial & Debug Level: WiFi I wonder if the DNS issue is because AP is enabled and somehow the DNS lookup is being set there (and fails of course). esp8266/Arduino#4949 mentions this possibility in one of the comments. Would explain why it works if I set STA after the config portal exits. |
Maybe, But I was in not seeing issues with the same mode. Shouldn't dns work on both interfaces? |
ok so if the subnets are the same, the loopback dns will be hit it seems. Is this what you are seeing, is your sta ap dns the same subnet as your softap ? |
Nope - 192.168.0.0/24 vs 192.168.4.0/24 Maybe there is something odd about how my router sends teh DNS server? (But it works in STA only mode) |
strange I will try to see of that bug can be fixed for now, if that issue is still a problem or not |
Basic Infos
Development branch (current development branch git)
Hardware
WiFimanager Branch/Release: Development
Esp8266/Esp32: esp8266
Hardware: ESP-12e
Core Version: current master from git
Description
DNS name resolution fails if config portal was up. When autoconnect without portal DNS name resolution works fine.
Settings in IDE
Module: NodeMcu
Additional libraries: None
Sketch
Debug Messages
Reset with pin 14 LOW - force config portal - DNS lookups fail.
Reset with pin 14 HIGH - use auto connect, DNS works.
The text was updated successfully, but these errors were encountered: