I am using Python Paho client on my Raspberry Pi CM4 module, and I have a question about the offline queue mqtt_client.max_queued_messages_set(100)
.
Is there a way I can monitor this queue? I want to get the length and do something with the queue if power fails. I have verified that I am using the latest version of the Paho client, Python, and API version 2 in the Paho client.
New contributor
Luigi Juliano Di Leo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.