Refactor device-dashboard

This commit is contained in:
Sergio R. Caprile committed 2023-05-26 20:45:08 -03:00
1 parent 49a9bb5a8b
commit 58606e1702
29 files changed
+5123 -4476

No files matched your search

+2 -2
View File
@@ -2,6 +2,7 @@
// All rights reserved
#include "mongoose.h"
#include "net.h"
// Zephyr: Define a semaphore and network management callback to be able to wait
// until our IP address is ready. The main function will start and block on this
@@ -26,8 +27,7 @@ int main(int argc, char *argv[]) {
mg_mgr_init(&mgr);
extern void device_dashboard_fn(struct mg_connection *, int, void *, void *);
mg_http_listen(&mgr, "http://0.0.0.0:8000", device_dashboard_fn, NULL);
web_init(&mgr);
// Start infinite event loop
MG_INFO(("Mongoose version : v%s", MG_VERSION));