Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Information] Is there a way to forcibly clear the message queue? #591

Closed
skidnight opened this issue May 15, 2024 · 0 comments
Closed

[Information] Is there a way to forcibly clear the message queue? #591

skidnight opened this issue May 15, 2024 · 0 comments

Comments

@skidnight
Copy link

I'm experiencing issues where messages can be buffered using qos0 with DUP and retained both set to false as follows:

mClient.publish(self.messageTopic, withString: jsonString!, qos: .qos0, DUP: false, retained: false, properties: publishProperties)

Publish properties are set as follows:

                let publishProperties = MqttPublishProperties()
                publishProperties.contentType = "JSON"
                publishProperties.messageExpiryInterval = 5;

So my question is, should this be happening and further is there a mechanism for forcibly clearing the message queue so that this can be avoided? Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant