Topic: Trouble Getting WolfMQTT Async Publish Working

Hi everyone, I’m new to WolfMQTT and currently trying to implement asynchronous publish handling on a small embedded board. I’ve been going through the documentation and examples from the official site:
https://www.wolfssl.com/docs/wolfmqtt-manual/

The examples are great, but I’m running into an issue where async publishes sometimes never trigger the callback, especially when multiple messages are queued quickly. The connection stays open, but the client just stops responding until I restart the MQTT task.

Has anyone run into similar callback or async queue problems?

Is there a recommended way to structure the async loop for reliability?

Should certain WolfMQTT_CTX settings be adjusted when using async mode?

Could this be related to timing or socket blocking behavior on embedded systems?

Any pointers would be really appreciated!

Share

2

Re: Trouble Getting WolfMQTT Async Publish Working

Hi Alice,

Thanks for contacting wolfSSL Support. Are you publishing from multiple threads? If so you'll need to enable mutex support with the multithread config option
--enable-mt (or define WOLFMQTT_MULTITHREAD)

Could you share the full configuration?

It might be easier for you to submit a support ticket by emailing support@wolfssl.com

Thanks,
Eric

3

Re: Trouble Getting WolfMQTT Async Publish Working

Also, could you please tell us a bit about your wolfMQTT project? We are always interested to hear about how its being used.

Thanks,
Eric