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
@@ -104,6 +104,7 @@ int main(void) {
// Start a minimal web server
struct mg_mgr mgr;
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);
@@ -113,6 +114,7 @@ int main(void) {
for (;;) {
mg_mgr_poll(&mgr, 0);
mg_mqtt_poll(&mgr);
blink_task();
}