Function esp_idf_sys::esp_wifi_get_inactive_time
source ยท pub unsafe extern "C" fn esp_wifi_get_inactive_time(
ifx: wifi_interface_t,
sec: *mut u16,
) -> esp_err_t
Expand description
@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_NOT_STARTED: WiFi is not started by esp_wifi_start
- ESP_ERR_INVALID_ARG: invalid argument