ESP32 is at least 10 times slower than ESP8266 with MQTT

sblantipodi
Posts: 20
Joined: Thu Apr 16, 2020 9:41 am

ESP32 is at least 10 times slower than ESP8266 with MQTT

Postby sblantipodi » Tue Aug 18, 2020 8:12 pm

As title.
I am experiencing a behaviour I can't exaplain.

Don't ask me why but for some reasons I am subscribing to an MQTT topic that update itself 30 times per second.
ESP8266 handles it like a boss without any problems but ESP32 lags far behind.

It seems that ESP32 isn't able to handle all that messages, it is at least 10 times slower than ESP8266, how this can be possible?

Using pubsubclient for MQTT.

Same code on both ESP32 and ESP8266.

Any idea?

Thanks

sblantipodi
Posts: 20
Joined: Thu Apr 16, 2020 9:41 am

Re: ESP32 is at least 10 times slower than ESP8266 with MQTT

Postby sblantipodi » Thu Aug 20, 2020 4:33 pm

don't ask me why but I solved after hours with a simple delay(5) in the main loop.
ESP32 devices are so broken when comparing them to ESP8266.

Loving ESP8266 all the day.

Who is online

Users browsing this forum: Bing [Bot] and 153 guests