This commit is contained in:
parent
f4d1b53760
commit
006d281ad6
5 changed files with 42 additions and 10 deletions
|
|
@ -251,14 +251,13 @@ void websocket_open_cb(struct tcp_pcb *pcb, const char *uri) {
|
|||
}
|
||||
}
|
||||
|
||||
extern "C" [[noreturn]] void httpd_task(void *pvParameters) {
|
||||
extern "C" void httpd_task(void *pvParameters) {
|
||||
|
||||
while(!uxSemaphoreGetCount( wifi_available_semaphore ))
|
||||
while (!uxSemaphoreGetCount(wifi_available_semaphore))
|
||||
vTaskDelay(500 / portTICK_PERIOD_MS);
|
||||
|
||||
websocket_register_callbacks((tWsOpenHandler) websocket_open_cb, (tWsHandler) websocket_cb);
|
||||
httpd_init();
|
||||
|
||||
for (;;)
|
||||
vTaskDelay(500 / portTICK_PERIOD_MS);
|
||||
vTaskDelete(nullptr);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue