I’m using the clean_session while implementing MQTT in QuecPython, as I want to retrieve the data on topic, after connection is re-established. But, I’m only getting latest data, after reconnection, not the one which was written on the topic when my connection was broken, even after I set clean_session as false.
hi, Tanmayee
Does your server support clean session?
You can use third-party tools to test and verify that the function is normal.
Attached is my test script. I tested it before and it worked fine.(Note: The server address in the script needs to be changed to your server)
mqtt_test.py (1.1 KB)