Session not clean with message persistence on arduino esp8266

I’m connecting on the esp8266 board of the arduino with the broker, but I can’t use it with non-clean session and message persistence. Is there any limitation for these arduino board configurations?

Hello @jcandido ,

Great that you are interested in MQTT and HiveMQ Cloud, please be welcome in our community!

HiveMQ Cloud broker itself has no discrimination towards Arduino boards, as the broker is talking to the client software that is running on the board. Variations in behaviour normally depend on the following factors:

  1. Which MQTT Client library your Arduino project is using.
  2. Which MQTT specification version your client library supports (i.e. MQTT 3, MQTT 3.1.1. or MQTT 5)

Feel free to provide example of your code and what is it working not as expected.

Kind regards,
Dasha from HiveMQ team