feat: HTTP-Server auf Port 3333 mit App-API-Kontext
This commit is contained in:
@@ -14,9 +14,11 @@
|
||||
#include "light/nl_boot_state.h"
|
||||
#include "light/nl_control.h"
|
||||
#include "light/nl_engine.h"
|
||||
#include "net/nl_http_server.h"
|
||||
#include "net/nl_mdns.h"
|
||||
#include "net/nl_wifi.h"
|
||||
#include "sys/nl_app.h"
|
||||
#include "sys/nl_app_api.h"
|
||||
#include "sys/nl_console.h"
|
||||
|
||||
#define NL_LIGHT_PRIO 30
|
||||
@@ -186,6 +188,8 @@ static void app_task(void *arg)
|
||||
nl_wifi_start(NINLIGHT_WIFI_SSID, NINLIGHT_WIFI_PASSWORD, NINLIGHT_AP_PASSWORD);
|
||||
}
|
||||
|
||||
nl_http_server_start(nl_app_api_ctx());
|
||||
|
||||
boot_ms = nl_app_now_ms();
|
||||
beat_seen = s_light_beat;
|
||||
for (;;) {
|
||||
|
||||
Reference in New Issue
Block a user