1 (edited by ethanhawkins 2025-12-19 21:31:53)

Topic: Configuring wolfMQTT for QoS 2 Messages

Hi everyone,
I’m trying to configure wolfMQTT to handle QoS 2 messages for my embedded device. While QoS 0 and 1 work fine, I noticed that messages with QoS 2 are either delayed or occasionally dropped. Monkey Mart
Could anyone provide guidance or an example on properly setting up wolfMQTT for reliable QoS 2 message delivery? Are there specific callbacks or settings I should pay attention to for ensuring exactly-once delivery?

Share

Re: Configuring wolfMQTT for QoS 2 Messages

Hi ethanhawkins,

Welcome to the wolfSSL Forums.

QoS 2 requires more round trips between the client and broker. On a lossy network, this could cause problems, but I would expect you'd also see issues with QoS 1 if that were the issue.

Are you using multiple threads? Or non-blocking sockets? Please share some details about the wolfMQTT configuration and the underlying TCP layer.

Could you tell us a bit about your project using wolfMQTT and where you are located for our support records? Feel free to open a support ticket by emailing support@wolfssl.com

Kind regards,
Eric - wolfSSL Support