-
Notifications
You must be signed in to change notification settings - Fork 1
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
Some network changes ( missing push event at IP change, Active scan, connect best signal AP ) #17
Some network changes ( missing push event at IP change, Active scan, connect best signal AP ) #17
Conversation
If this is needed you also need to renew the DHCP, some routers expose the hostname via 'normal' DNS, so probably need to restart the whole network stack |
I got this issue during wizard if user set the hostname after setting the wifi network, then at the end of wizard it redirects to the new hostname but mDNS hasn't been updated on the network. |
…ter/ESP32_WiFi_V4.x into wifi_connection-issue
This also add missing event_send ip & connection status in wifiOnStationModeGotIP However most of the time I don't receive it, I'm kicked out of the AP when saving the new WIFI/pass |
added _dnsServer restart too |
scan all channels before connecting to AP ( needed for above )
Thanks @KipK, it is not the DNS server on the ESP that needs restarting, that is only used in AP mode. It is that the ESP needs to renew its IP settings from the router, the host name is contained in the DHCP message and this is then used by some routers to in the router's DNS, eg I can use IMHO I think it may just be a case of restarting the networking (both wired and wireless), unless there is a handy method to just enew the IP address. |
How did you do this? |
Nevermind, found it.... If I had known it was that simple would have made that change ages ago.... |
found that while debugging the wifi issue , was worth trying :) |
what would be the best way to restart this without restartint the AP mode ? |
If you are in AP mode, just restarting the mDNS is sufficient. When connected to a proper network (either via WiFi or Wired) that is when you would need to restart the network. That being said the cases when you would be in AP mode and change the hostname will be slim I would have thought... |
on the wizard in AP mode, the Hostname can be set. |
this should be good like this. |
I've removed the hostanme change triggering dns restart and co. |
Yeah, maybe a good idea. I can have a look, I think I also need to look at changing WiFi credentials as well |
for captive portal missing in AP+STA, it nows works ok. |
Some fixes & improvement:
missing push event at ip change
set wifi scan to active ( solve strange bug )
force wifi to conenct to AP with best signal, fixes OpenEVSE#385