-
Notifications
You must be signed in to change notification settings - Fork 7.6k
mDNS causes assertion when switching for STA to AP mode when mDNS is active #1926
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
Comments
Issue was for mDNS + OTA but sounds related. |
@jeroenst maybe try not using the WiFi.mode() and WiFi.begin(); lines, also try configuring AP before calling WiFi.softAP() like... const IPAddress ap_IP = IPAddress(192, 168, 4, 1); // ip address
const IPAddress ap_NM = IPAddress(255, 255, 255, 0); // netmask
WiFi.softAPConfig(ap_IP, ap_IP, ap_NM);
WiFi.softAP("HELLO_WORLD", "",6,0); |
@jeroenst I tried your exact code with several logging levels and couldn't reproduce it. @beegee-tokyo was saying his changed depending on the ordering of various function calls. If youre using the git version of the core it may be worth it to checkout an older git version (say before the last idf update commit #1878) or to the release version and see if it still does it. |
I think this is allready fixed in the master branch and I was using the esp32 downloaded by the boards manager of arduino. I removed the esp32 from the boards manager and cloned the master branch into Arduino/hardware, now I don't get the error anymore. Sorry for misusing your time. |
Same here. happens in MDNS.begin ..
|
I don't think this is fixed, getting the same error with current branch. |
I can confirm: I've get the same message error when mDNS is initialized. This error seems to be sporadic, but usual happens after button reset. My code is still messy, I going to investigate to provide more info... |
I have also randomly the assertion issue - I was hoping this commit will fix it - so waiting new idf to be integrated |
When switching from station mode to access point mode when mDNS is active the esp32 crashes with the following error:
When enabling verbose logging, the error doesn't occur:
Code I used to reproduce this bug:
The text was updated successfully, but these errors were encountered: