Function esp_idf_svc::sys::esp_wifi_disconnect

source ยท
pub unsafe extern "C" fn esp_wifi_disconnect() -> i32
Expand description

@brief Disconnect WiFi station from the AP.

@return

  • ESP_OK: succeed
  • ESP_ERR_WIFI_NOT_INIT: WiFi was not initialized by esp_wifi_init
  • ESP_ERR_WIFI_NOT_STARTED: WiFi was not started by esp_wifi_start
  • ESP_FAIL: other WiFi internal errors