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
In control_demo_mqtt it sends a message with qos=1 while inside a message handler. This is a bad pattern (I forget where i read this, but it relates to qos=1 taking unpredictable time or something like that).
Instead suggestion is ....
xMqtt::messageReceived or similar should set & clear a flag
xMqtt::messageSend should queue messages if flag set
either (when the flag is cleared, or in xMqtt::loop if the flag is clear) it should send queued messages
In control_demo_mqtt it sends a message with qos=1 while inside a message handler. This is a bad pattern (I forget where i read this, but it relates to qos=1 taking unpredictable time or something like that).
Instead suggestion is ....
Part of #21
The text was updated successfully, but these errors were encountered: