Connect with cleanSession=false


Is possible to connect to a MQTT broker with the parameter cleanSession set to false?

I would like to get allt the messages that were on the broker during client's off-line status.

According to this article

Persistent Session and Queuing Messages - MQTT Essentials: Part 7 (

it's done via cleanSession=false

Foud it!

Just for reference if anyone needs it.

It's in the .Connect method, here you can specify the cleanSession parameter. IT's not mentioned in the manual, but is well visible in the code.

procedure Connect(ACleanSession: Boolean = True);