mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-14 10:17:08 +08:00
Merge branch 'feature/add_64bits_sleep_time_support_for_esp_deep_sleep' into 'master'
feat(esp8266): support 64bit sleep time for esp_deep_sleep See merge request sdk/ESP8266_RTOS_SDK!1516
This commit is contained in:
@ -65,7 +65,7 @@ typedef enum {
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
void esp_deep_sleep(uint32_t time_in_us);
|
||||
void esp_deep_sleep(uint64_t time_in_us);
|
||||
|
||||
/**
|
||||
* @brief Set implementation-specific power management configuration
|
||||
|
@ -1019,6 +1019,39 @@ esp_err_t esp_wifi_set_rssi_threshold(int32_t rssi);
|
||||
*/
|
||||
int64_t esp_wifi_get_tsf_time(wifi_interface_t interface);
|
||||
|
||||
/**
|
||||
* @brief Set the inactive time of the ESP32 STA or AP
|
||||
*
|
||||
* @attention 1. For Station, If the station does not receive a beacon frame from the connected SoftAP during the inactive time,
|
||||
* disconnect from SoftAP. Default 6s.
|
||||
* @attention 2. For SoftAP, If the softAP doesn't receive any data from the connected STA during inactive time,
|
||||
* the softAP will force deauth the STA. Default is 300s.
|
||||
* @attention 3. The inactive time configuration is not stored into flash
|
||||
*
|
||||
* @param ifx interface to be configured.
|
||||
* @param sec Inactive time. Unit seconds.
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK: succeed
|
||||
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
|
||||
* - ESP_ERR_WIFI_NOT_STARTED: WiFi is not started by esp_wifi_start
|
||||
* - ESP_ERR_WIFI_ARG: invalid argument, For Station, if sec is less than 3. For SoftAP, if sec is less than 10.
|
||||
*/
|
||||
esp_err_t esp_wifi_set_inactive_time(wifi_interface_t ifx, uint16_t sec);
|
||||
|
||||
/**
|
||||
* @brief Get inactive time of specified interface
|
||||
*
|
||||
* @param ifx Interface to be configured.
|
||||
* @param sec Inactive time. Unit seconds.
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK: succeed
|
||||
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
|
||||
* - ESP_ERR_WIFI_ARG: invalid argument
|
||||
*/
|
||||
esp_err_t esp_wifi_get_inactive_time(wifi_interface_t ifx, uint16_t *sec);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -1,8 +1,8 @@
|
||||
gwen:
|
||||
core: 0f4f59c
|
||||
net80211: 0f4f59c
|
||||
pp: 0f4f59c
|
||||
espnow: 0f4f59c
|
||||
core: 99a1d31
|
||||
net80211: 99a1d31
|
||||
pp: 99a1d31
|
||||
espnow: 99a1d31
|
||||
|
||||
smartconfig: 2.8.2
|
||||
phy: 1163.0
|
||||
|
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.
Reference in New Issue
Block a user