35 lines
No EOL
579 B
C++
35 lines
No EOL
579 B
C++
//
|
|
// Created by jedi on 25.06.21.
|
|
//
|
|
|
|
#include "web.h"
|
|
#include "system.h"
|
|
#include "lux.h"
|
|
#include "wifi.h"
|
|
|
|
#include <cstring>
|
|
#include <FreeRTOS.h>
|
|
#include <task.h>
|
|
|
|
extern "C" {
|
|
#include <sysparam.h>
|
|
#include <lwipopts.h>
|
|
}
|
|
|
|
#include <espressif/esp_common.h>
|
|
#include <lwip/tcp.h>
|
|
|
|
extern "C" {
|
|
#include <httpd/httpd.h>
|
|
}
|
|
|
|
|
|
extern "C" [[noreturn]] void httpd_task(void *pvParameters) {
|
|
|
|
while(!uxSemaphoreGetCount( wifi_available_semaphore ))
|
|
vTaskDelay(500 / portTICK_PERIOD_MS);
|
|
httpd_init();
|
|
|
|
for (;;)
|
|
vTaskDelay(500 / portTICK_PERIOD_MS);
|
|
} |