You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The callback is usually called as part of client.yield(). However, if you call client.subscribe(), client.unsubscribe() or client.publish() // with qos > 0 it might get called as well, if messages are received while waiting for the acknowledgement.
In other projects I used a queue to push messages in from the callback. That way you can process them at another point in your program. I don't know if there is a suitable queue implementation for Arduino.
Hi there
Is it save tô assume that a call back will not occure in berween a function that you call in the loop block of code?
BR
Gilberto
The text was updated successfully, but these errors were encountered: