Function esp_idf_sys::esp_wifi_get_tsf_time
source · pub unsafe extern "C" fn esp_wifi_get_tsf_time(
interface: wifi_interface_t,
) -> i64
Expand description
@brief Get the TSF time In Station mode or SoftAP+Station mode if station is not connected or station doesn’t receive at least one beacon after connected, will return 0
@attention Enabling power save may cause the return value inaccurate, except WiFi modem sleep
@param interface The interface whose tsf_time is to be retrieved.
@return 0 or the TSF time