Page 1 of 1

Simultaneous MQTT and HTTP server

Posted: Fri Jan 07, 2022 4:39 pm
by mohasrj
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

Re: Simultaneous MQTT and HTTP server

Posted: Sat Jan 08, 2022 3:09 am
by ESP_Sprite
Yes, that should work fine (I have it working here). Can you post the code that leads to the issue?

Re: Simultaneous MQTT and HTTP server

Posted: Sat Jan 08, 2022 2:51 pm
by tommeyers
If you can then run mqtt broker in verbose mode while you observe the problem.

Re: Simultaneous MQTT and HTTP server

Posted: Sat Jan 08, 2022 4:31 pm
by chegewara
Memory shortage for SSL connection?