Two HTTPS servers on one ESP32?
Posted: Thu Mar 10, 2022 10:35 pm
I'm certainly approaching this the wrong way, but I'd like to have an HTTPS server and WSS (secure websocket) server running on one ESP32.
I've tried to run the ESP-IDF Simple https server example and the ESP-IDF wss_server example in parallel, calling both:
and
both of which ultimately call
I've configured them to listen on different ports (and use a differnt UDP ctrl_port), and both appear to start up OK, but neither actually accept a connection on their respective ports (which are 8443 and 443).
I presume I can just use on instance of httpd_ssl_start() and bind both my https server and wss server on different URLS?
Anyone able to provide suggestions on setting this up?
I've tried to run the ESP-IDF Simple https server example and the ESP-IDF wss_server example in parallel, calling both:
Code: Select all
start_wss_echo_server()
Code: Select all
start_webserver()
Code: Select all
httpd_ssl_start(&server, &conf);
I presume I can just use on instance of httpd_ssl_start() and bind both my https server and wss server on different URLS?
Anyone able to provide suggestions on setting this up?