Add TLS to pico-w5500 baremetal example

This commit is contained in:
cpq committed 2023-01-30 21:30:10 +00:00
1 parent 476232ea22
commit 052b40680d
15 files changed
+152 -22

No files matched your search

@@ -85,7 +85,7 @@ int main(void) {
MG_INFO(("Initialising application..."));
extern void device_dashboard_fn(struct mg_connection *, int, void *, void *);
mg_http_listen(&mgr, "http://0.0.0.0", device_dashboard_fn, &mgr);
mg_http_listen(&mgr, "http://0.0.0.0", device_dashboard_fn, NULL);
MG_INFO(("Starting event loop"));
for (;;) {
@@ -80,7 +80,7 @@ int main(void) {
MG_INFO(("Init done, starting main loop"));
extern void device_dashboard_fn(struct mg_connection *, int, void *, void *);
mg_http_listen(&mgr, "http://0.0.0.0", device_dashboard_fn, &mgr);
mg_http_listen(&mgr, "http://0.0.0.0", device_dashboard_fn, NULL);
for (;;) mg_mgr_poll(&mgr, 0); // Infinite event loop
return 0;