Closed
Description
Hi I am now using wrapper functions (WiFi.setSleepMode/WiFi.getSleepMode) and types from instead of native sdk ones (wifi_set_sleep_type/wifi_get_sleep_type) and new types from ESP8266WiFiType.h and get inconsistencies when testing
I found out that the types do not match between sdk and wrapper:
in user_interface.h
typedef enum {
NONE_SLEEP_T = 0,
LIGHT_SLEEP_T,
MODEM_SLEEP_T
} sleep_type_t
but in ESP8266WiFiType.h
typedef enum {
WIFI_NONE_SLEEP = 0, WIFI_LIGHT_SLEEP = 2, WIFI_MODEM_SLEEP = 3
} WiFiSleepType_t;
should be
typedef enum {
WIFI_NONE_SLEEP = 0, WIFI_LIGHT_SLEEP = 1, WIFI_MODEM_SLEEP = 2
} WiFiSleepType_t;
I guess it is typo issue due to copy and paste from WiFiPhyMode_t because wrap functions are just pass thrue
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.