eclipse-paho / eclipse-paho/paho.mqtt.python

max_queued_messages_set(size)

Open
#857 1 comment 0 reactions 0 assignees View on GitHub
Status: Available Type: Question
Dominant language
Python
Stars
2.4k
Forks
742
Avg merge
12d 48m
Merged PRs (30d)
1

Description

I am using python Paho client on my raspberrypi CM4 module. I have a question on the offline queue "mqtt_client.max_queued_messages_set(100)"

1. Will this queue only start to fill up when the connection to the broker is "disconnected" ?
2. When a message did not go through successfully to the broker will the message append to the queue for retry later ?
3. Is there a way I can monitor this queue, I want to get the length and if power fails I want to dump to local storage before powering down?

I have verified, I am using the latest version of Paho-client, Python and Api version 2 in the paho client.

I checked forms but couldnt find anything at this stage, will continue my search but hope someone could assist me , or point me in the right direction.

Contributor guide

Open the contributing guide

Research direction

Start with the Python API entry point max_queued_messages_set(100) and the current documentation for offline queuing. Check the documented behavior for disconnected publishes, failed delivery, queue length visibility, and persistence on shutdown; done means each question has an answer or the missing behavior is explicitly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
embedded-iot, networking
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.