-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add check prov mgr is stopped (IDFGH-11433) #12570
Conversation
👋 Hello Diam2023, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
Hello, @laukik-hase! Thanks for your reply. This is my idea, Consider the following situation: For example: void wifi_prov_mgr_stop_provisioning_blocking()
{
if (!prov_ctx_lock) {
ESP_LOGE(TAG, "Provisioning manager not initialized");
return;
}
ACQUIRE_LOCK(prov_ctx_lock);
wifi_prov_mgr_stop_service(1);
RELEASE_LOCK(prov_ctx_lock);
}
// -------------- OR
bool wifi_prov_mgr_is_stopped()
{
return prov_ctx->prov_state == WIFI_PROV_STATE_IDLE;
}
|
sha=65bc5668da702dead5424bc238bf548361a2ca1c |
When I called the wifi_prov_mgr_stop_provisioning function it didn't stop immediately,
So I added a check to see if the prov was stopped