pub unsafe extern "C" fn esp_wifi_deauth_sta(aid: u16) -> esp_err_t
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