-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
WiFi fpm sleep type checks in mode() #7975
Comments
@mcspr Perhaps it's a misunderstanding as to what NONE really means in
I understand that NONE means no sleep mode at all, not no Wifi. You are right that the code is in violation of Espressif documentation:
and should be fixed like so
|
PR #7979 would gladly accept control of the sleep code at that level, and add a cached flag for auto vs. forced sleep modes. Currently without that, it unfortunately has no way of discovering which of auto or forced is in effect when the newly added sleep functions are called, which makes full switching back impossible and always results in auto sleep mode due to
when turning off its various new sleep modes. |
Basic Infos
Problem Description
After #7902
Arduino/libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp
Lines 429 to 433 in 1cc6960
In case
enableWiFiAtBootTime();
is used,wifi_fpm_get_sleep_type() != NONE_SLEEP_T
is always true b/c SDK default is MODEM and it seems to be a setting for the wifi_fpm_open(), not the actual active mode check. Should it be set by the opposite__disableWiFiAtBootTime()
to NONE since a lot of functions seem to skip WiFi.forceSleepBegin/Wake and directly use SDK API?MCVE Sketch
Debug Messages
#if 0
&#if 1
The text was updated successfully, but these errors were encountered: