chmorgan/esphttpd-freertos

httpdFreertosStart shutdown/deinit

Closed this issue · 4 comments

Hello,

Can't find any documentation how to deinit httpd instance, it causes StoreProhibited error wen trying to esp_wifi_stop(); and esp_wifi_deinit(); after httpdFreertosStart was called, resulting in no possibility to turn off wifi dynamically with httpd server.

Thank you for your response.

It seems that there is some misalign with FreeRTOS/linux version of shutdown. I do use it on FreeRTOS (ESP32), and calling httpdShutdown(&httpdFreertosInstance); causes an error:

components/libesphttpd/include/libesphttpd/httpd.h:226:6: note: expected 'struct HttpdInstance *' but argument is of type 'HttpdFreertosInstance * {aka struct < anonymous > *}'
void httpdShutdown(HttpdInstance *pInstance);
^

am I missing something ?

Thank you.

Thank you very much, work like a charm!

Have a nice day