Exporting only dashboard func

This commit is contained in:
Sergey Lyubka committed 2022-05-15 14:40:58 +01:00
1 parent cf7d1d8041
commit 95e22e8d4f
2 files changed
+6 -10

No files matched your search

+4 -2
View File
@@ -3,11 +3,13 @@
#include "mongoose.h"
extern void run_web_server(struct mg_mgr *);
void device_dashboard_fn(struct mg_connection *, int, void *, void *);
int main(void) {
struct mg_mgr mgr;
mg_mgr_init(&mgr);
run_web_server(&mgr);
mg_http_listen(&mgr, "http://0.0.0.0:8000", device_dashboard_fn, &mgr);
for (;;) mg_mgr_poll(&mgr, 1000);
mg_mgr_free(&mgr);
return 0;
}