Page 1 of 1

ESP32 is at least 10 times slower than ESP8266 with MQTT

Posted: Tue Aug 18, 2020 8:12 pm
by sblantipodi
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

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

Posted: Thu Aug 20, 2020 4:33 pm
by sblantipodi
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.