Skip to content
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

Wierd Issue causing MDNS Fail and hardware watchdog reset in wifi connection #1

Open
arihantdaga opened this issue Jun 3, 2020 · 2 comments

Comments

@arihantdaga
Copy link
Member

There is a weird Issue causing MDNS Fail and hardware watchdog reset in wifi connection. This issue seems to be resolved after removing wifi.persistent(false);
I don't know how it is related, but somehow, this seems to solve the problem. We'll investigate later.

arihantdaga added a commit that referenced this issue Jun 3, 2020
@arihantdaga
Copy link
Member Author

removing this isn't wise, because it'll lead to behaviors like - even if we removed a wifi from the settings, it'll still connect to the same network.

Another things that seems to be working is this -

        WiFi.mode(WIFI_OFF);
        delay(200);
        // See https://github.com/esp8266/Arduino/issues/2186
        if (strncmp_P(ESP.getSdkVersion(), PSTR("1.5.3"), 5) == 0) {
            WiFi.mode(WIFI_OFF);
        }

        WiFi.enableSTA(true);
        WiFi.hostname(_hostname);

Note that we have to call wifi.mode(WIFI_OFF) because otherwise it'll start in AP+STA Mode.

@arihantdaga
Copy link
Member Author

We can also disable the wifi.persistent(false);
But then in our main function setup() we'll have to call wifi.disconnect() before starting.

arihantdaga added a commit that referenced this issue Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant