How to use watchdog with blocking MQTT calls in Zephyr? #100647
Unanswered
pawankumar0099
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
I think you can use the subsys task_wdt |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Zephyr MQTT client, and functions like mqtt_input, mqtt_live and mqtt_publish are blocking.
I want to enable the watchdog, but I am not sure where to call watchdog feed because the MQTT loop may block for a few seconds.
My questions:
How should I feed the watchdog when MQTT API blocks?
Should I create a separate thread only to feed the watchdog?
Is there a recommended pattern for using watchdog with MQTT in Zephyr?
Beta Was this translation helpful? Give feedback.
All reactions