Function esp_idf_sys::wifi_prov_mgr_reset_sm_state_on_failure

source ยท
pub unsafe extern "C" fn wifi_prov_mgr_reset_sm_state_on_failure() -> esp_err_t
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