Function esp_idf_hal::sys::esp_wifi_get_inactive_time

source ยท
pub unsafe extern "C" fn esp_wifi_get_inactive_time(
    ifx: u32,
    sec: *mut u16,
) -> i32
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