Function esp_idf_svc::sys::esp_wifi_deauth_sta
source ยท pub unsafe extern "C" fn esp_wifi_deauth_sta(aid: u16) -> i32
Expand description
@brief deauthenticate all stations or associated id equals to aid
@param aid when aid is 0, deauthenticate all stations, otherwise deauthenticate station whose associated id is aid
@return
- ESP_OK: succeed
- ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
- ESP_ERR_WIFI_NOT_STARTED: WiFi was not started by esp_wifi_start
- ESP_ERR_INVALID_ARG: invalid argument
- ESP_ERR_WIFI_MODE: WiFi mode is wrong