Simultaneous MQTT and HTTP server
Posted: Fri Jan 07, 2022 4:39 pm
hi,
iam usig esp32 and esp idf 4.3 Framework .
is it possible to run using 2 task an MQTT client (port 8883) to publish data and have web page at same time .
for now each task work well separately. But i got error when i try to run both task at same code.
like :
E (385828) TRANS_TCP: tcp_poll_read select error 113, errno = Software caused connection abort, fd = 57
E (385848) MQTT_CLIENT: Poll read error: 119, aborting connection.
W (385848) httpd: httpd_accept_conn: error in accept (128).
E (395888) TRANS_TCP: [sock=54] connect() error: Host is unreachable
E (395888) MQTT_CLIENT: Error transport connect
iam usig esp32 and esp idf 4.3 Framework .
is it possible to run using 2 task an MQTT client (port 8883) to publish data and have web page at same time .
for now each task work well separately. But i got error when i try to run both task at same code.
like :
E (385828) TRANS_TCP: tcp_poll_read select error 113, errno = Software caused connection abort, fd = 57
E (385848) MQTT_CLIENT: Poll read error: 119, aborting connection.
W (385848) httpd: httpd_accept_conn: error in accept (128).
E (395888) TRANS_TCP: [sock=54] connect() error: Host is unreachable
E (395888) MQTT_CLIENT: Error transport connect