Function esp_idf_svc::hal::sys::wifi_prov_mgr_get_wifi_disconnect_reason
source ยท pub unsafe extern "C" fn wifi_prov_mgr_get_wifi_disconnect_reason(
reason: *mut u32,
) -> i32
Expand description
@brief Get reason code in case of Wi-Fi station disconnection during provisioning
@param[out] reason Pointer to wifi_prov_sta_fail_reason_t variable to be filled
@return
- ESP_OK : Successfully retrieved Wi-Fi disconnect reason
- ESP_FAIL : Provisioning app not running