Function esp_idf_sys::esp_wifi_connect_internal

source ยท
pub unsafe extern "C" fn esp_wifi_connect_internal() -> esp_err_t
Expand description

@brief Connect WiFi station to the AP.

@attention 1. This API only impact WIFI_MODE_STA or WIFI_MODE_APSTA mode

@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_WIFI_MODE: WiFi mode error
  • ESP_ERR_WIFI_CONN: WiFi internal error, station or soft-AP control block wrong
  • ESP_ERR_WIFI_SSID: SSID of AP which station connects is invalid