Tutorials - nits and mqtt client adoption

This commit is contained in:
cpq committed 2026-11-18 20:28:36 +00:00
1 parent 069ab78c02
commit 28e3b347d4
8 files changed
+14 -5

No files matched your search

+2
View File
@@ -65,11 +65,13 @@ static void run_mongoose(void) {
struct mg_mgr mgr;
mg_log_set_fn(log_fn, NULL);
mg_mgr_init(&mgr);
mg_mqtt_init(&mgr);
mg_http_listen(&mgr, "http://0.0.0.0", http_ev_handler, NULL);
mg_http_listen(&mgr, "https://0.0.0.0", http_ev_handler, NULL);
for (;;) {
mg_mgr_poll(&mgr, 1);
mg_mqtt_poll(&mgr);
blink_task();
}
}