mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
Update to the last version of nonos-sdk V2, WiFi addons (#5210)
* fwupdate * fw update to latest version: WPA working, WEP+Open disabled by default. Need API change. * helpers to follow sdk updates * remove compare scripts - made a separate PR for them * add wep api, restore original espressif comment (wep enabled does not prevent wpa) * libmain was not up to date * experimental: DTIM setting in WiFi.setSleepMode(WIFI_LIGHT/MODEM_SLEEP, DTIM-value) with new getter: .getListenInterval() / .isSleepLevelMax() * fixes * fix debug message * when not using listenInterval, set wifi sleep level to min * update documentation * update doc
This commit is contained in:
@ -251,6 +251,7 @@ struct station_config {
|
||||
// with both ssid[] and bssid[] matched. Please check about this.
|
||||
uint8 bssid[6];
|
||||
wifi_fast_scan_threshold_t threshold;
|
||||
bool open_and_wep_mode_disable; // Can connect to open/wep router by default.
|
||||
};
|
||||
|
||||
bool wifi_station_get_config(struct station_config *config);
|
||||
@ -427,6 +428,17 @@ typedef enum {
|
||||
MODEM_SLEEP_T
|
||||
} sleep_type_t;
|
||||
|
||||
typedef enum {
|
||||
MIN_SLEEP_T,
|
||||
MAX_SLEEP_T
|
||||
} sleep_level_t;
|
||||
|
||||
bool wifi_set_sleep_level(sleep_level_t level);
|
||||
sleep_level_t wifi_get_sleep_level(void);
|
||||
|
||||
bool wifi_set_listen_interval(uint8 interval);
|
||||
uint8 wifi_get_listen_interval(void);
|
||||
|
||||
bool wifi_set_sleep_type(sleep_type_t type);
|
||||
sleep_type_t wifi_get_sleep_type(void);
|
||||
|
||||
|
Reference in New Issue
Block a user