[Question] Must MQTTAsync_destroy be called after the disconnect operation completed? #1444
Unanswered
yeajay0001
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi,
In paho.mqtt.c example, MQTTAsync_destroy is called after disconnect operation completed: https://github.com/eclipse/paho.mqtt.c/blob/master/src/samples/MQTTAsync_subscribe.c
And paho.mqtt.cpp example is also called after disconnect operation completed:https://github.com/eclipse/paho.mqtt.cpp/blob/master/src/samples/async_consume_v5.cpp
And I have two questions:
1、Must MQTTAsync_destroy be called after the disconnect operation completed?
2、Must MQTTAsync_destroy be called in the same thread of call MQTTAsync_create?
Best Regards.
Beta Was this translation helpful? Give feedback.
All reactions