Function esp_idf_svc::sys::wifi_prov_mgr_reset_sm_state_on_failure

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

@brief Reset internal state machine and clear provisioned credentials.

This API should be used to restart provisioning ONLY in the case of provisioning failures without rebooting the device.

@return

  • ESP_OK : Reset provisioning state machine successfully
  • ESP_FAIL : Failed to reset provisioning state machine
  • ESP_ERR_INVALID_STATE : Manager not initialized