Skip to content

WiFi.disconnect() does not actually disconnect. #465

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

Closed
sticilface opened this issue Jun 25, 2017 · 3 comments
Closed

WiFi.disconnect() does not actually disconnect. #465

sticilface opened this issue Jun 25, 2017 · 3 comments

Comments

@sticilface
Copy link
Contributor

Need to replace it with the actual disconnect function.

http://esp-idf.readthedocs.io/en/latest/api-reference/wifi/esp_wifi.html#_CPPv219esp_wifi_disconnectv

bool WiFiSTAClass::disconnect(bool wifioff)
{
    bool ret;
    ret = esp_wifi_disconnect() == ESP_OK;

    if(wifioff) {
        WiFi.enableSTA(false);
    }

    return ret;
}
@sticilface
Copy link
Contributor Author

#466

@lonerzzz
Copy link
Contributor

@sticilface Is this issues completely covered by #466. Can we close this issue?

@copercini
Copy link
Contributor

copercini commented Aug 31, 2017

Solved in #466 @sticilface Thx for your PR!

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

3 participants