mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +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);
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
export PATH=../../xtensa-lx106-elf/bin:$PATH
|
||||
|
||||
# Remove mem_manager.o from libmain.a to use custom heap implementation,
|
||||
# and time.o to fix redefinition of time-related functions:
|
||||
xtensa-lx106-elf-ar d libmain.a mem_manager.o
|
||||
@ -13,4 +15,4 @@ xtensa-lx106-elf-objcopy --redefine-sym hostname=wifi_station_hostname eagle_lwi
|
||||
xtensa-lx106-elf-objcopy --redefine-sym default_hostname=wifi_station_default_hostname user_interface.o
|
||||
xtensa-lx106-elf-objcopy --redefine-sym default_hostname=wifi_station_default_hostname eagle_lwip_if.o
|
||||
xtensa-lx106-elf-ar r libmain.a eagle_lwip_if.o user_interface.o
|
||||
rm eagle_lwip_if.o user_interface.o
|
||||
rm -f eagle_lwip_if.o user_interface.o
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
v2.1.0-10-g509eae8
|
||||
v2.2.0-28-g89920dc
|
Reference in New Issue
Block a user