Code: Select all
static void app_prov_stop_service(void)
{
httpd_unregister_uri(g_prov->server, "/status");
httpd_unregister_uri(g_prov->server, "/provisioning");
ESP_LOGI(TAG, "stopping httpd");
if (g_prov->server)
{ httpd_stop(g_prov->server);
g_prov->server = NULL;
}
ESP_LOGI(TAG, "httpd stopped");
[...]
When called httpd_stop() the task hangs (do nothing) and I don't know why or how to debug...
esp continue listening on port 80 and urls get correctly unregistered.
In logs I see
and not "http stopped".I (66029) app_prov: stopping httpd
Thanks