Re: #mqtt #mqtt
MQTT event callback will run in the same thread from which you call `mqtt_input` function. So in case you call it from ISR (not recommended), the event callback will also run from ISR. I’m not sure how Zephyr’s test engine works internally, but perhaps it’s tests are run from ISR context. So while the code in the test might be fine to read and analyze, perhaps you should move it to real sample if you want to play with it.
I’m also not sure that you problems pertain from calling `k_fifo_put` form the IRQ context. According to documentation, this kernel function is safe to call from ISR, and I know it is used that way in existing code.
From: users@... [mailto:users@...] On Behalf Of Prabhu Vinod, Karthik
Sent: Monday, February 4, 2019 19:22
Subject: [Zephyr-users] #mqtt