Function esp_idf_svc::sys::esp_netif_create_default_wifi_sta

source ยท
pub unsafe extern "C" fn esp_netif_create_default_wifi_sta() -> *mut esp_netif_obj
Expand description

@brief Creates default WIFI STA. In case of any init error this API aborts.

@note The API creates esp_netif object with default WiFi station config, attaches the netif to wifi and registers wifi handlers to the default event loop. This API uses assert() to check for potential errors, so it could abort the program. (Note that the default event loop needs to be created prior to calling this API)

@return pointer to esp-netif instance