Asynchronous webserver with websockets
Posted: Mon Jul 01, 2019 11:31 am
I need a simple asynchronous webserver with websockets.
I could accept asynchronous FTM and convert/add websockets latter.
I have had a quick look at:
1) HTTP Server.
Does not seem to be asynchronous and lacks websockets.
Its not clear if the HTTP server interface supports multiple threads (start/stop aside).
For example I could add worker tasks and have the event handlers push the request object into a queue.
The task may then httpd_resp_send_chunk().
Is this mode supported?
2) ESPAsyncWebserver
ESP-IDF v4.0-dev-562-g2b301f53e will not compile with ardunio 1.0.3-rc1-9-g7d78247
I am aware of https://github.com/espressif/arduino-esp32/issues/1142 but need features of 4.0. Also I am not sure how nice Ardunio will play with the IDF components I need.
3) Kolban's HTTPServer
Not asynchronous & also (unless I am confussed) seems to close the websocket after each request?
Any help/suggestion welcome.
I could accept asynchronous FTM and convert/add websockets latter.
I have had a quick look at:
1) HTTP Server.
Does not seem to be asynchronous and lacks websockets.
Its not clear if the HTTP server interface supports multiple threads (start/stop aside).
For example I could add worker tasks and have the event handlers push the request object into a queue.
The task may then httpd_resp_send_chunk().
Is this mode supported?
2) ESPAsyncWebserver
ESP-IDF v4.0-dev-562-g2b301f53e will not compile with ardunio 1.0.3-rc1-9-g7d78247
I am aware of https://github.com/espressif/arduino-esp32/issues/1142 but need features of 4.0. Also I am not sure how nice Ardunio will play with the IDF components I need.
3) Kolban's HTTPServer
Not asynchronous & also (unless I am confussed) seems to close the websocket after each request?
Any help/suggestion welcome.