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
Is your feature request related to a problem? Please describe.
Currently using MQTTClient API, and only way to get MQTTv5 error code is to set disconnect callback which then also requires messageArrived callback to be set which internally spins a thread and kind of defeats the purpose for synchronous API
Describe the solution you'd like
Since my thread is calling MQTTClient_receive already, it be nice it that function can return the exact error code of a disconnect
Describe alternatives you've considered
I tried something like this and it seems to work
Is your feature request related to a problem? Please describe.
Currently using MQTTClient API, and only way to get MQTTv5 error code is to set disconnect callback which then also requires messageArrived callback to be set which internally spins a thread and kind of defeats the purpose for synchronous API
Describe the solution you'd like
Since my thread is calling MQTTClient_receive already, it be nice it that function can return the exact error code of a disconnect
Describe alternatives you've considered
I tried something like this and it seems to work
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: