Simultaneous MQTT and HTTP server

mohasrj
Posts: 33
Joined: Mon Jan 20, 2020 9:38 am

Simultaneous MQTT and HTTP server

Postby mohasrj » 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

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

Re: Simultaneous MQTT and HTTP server

Postby ESP_Sprite » Sat Jan 08, 2022 3:09 am

Yes, that should work fine (I have it working here). Can you post the code that leads to the issue?

tommeyers
Posts: 184
Joined: Tue Apr 17, 2018 1:51 pm
Location: Santiago, Dominican Republic

Re: Simultaneous MQTT and HTTP server

Postby tommeyers » Sat Jan 08, 2022 2:51 pm

If you can then run mqtt broker in verbose mode while you observe the problem.
IT Professional, Maker
Santiago, Dominican Republic

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: Simultaneous MQTT and HTTP server

Postby chegewara » Sat Jan 08, 2022 4:31 pm

Memory shortage for SSL connection?

Who is online

Users browsing this forum: No registered users and 124 guests