Add simple static webserver
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
3dffd0f0d2
commit
23cb4a558b
12 changed files with 271 additions and 4 deletions
|
|
@ -1,3 +1,35 @@
|
|||
//
|
||||
// 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue