-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disconnect with AWS IoT Gracefully #45
Comments
Hey @law-ko, thanks for reaching out about this issue as well. Is this by any chance related to your other issue #44? |
Hi @Skptak , We further investigated into this and still believes the Here's our code of trying to disconnect from AWS IoT:
Below is the crash log:
And for
How should we call xTlsDisconnect gracefully? We do not want to kill MQTTAgent as we are reconnecting afterwards. |
Hey @law-ko, thanks for letting me know that you're still seeing this issue! FreeRTOS/coreMQTT-Agent#104, #63, and #44 The team is taking a look into all of these. Unfortunately, it can be hard to pinpoint exactly what is going wrong since many of these issues can be hard to reproduce. I'm going to be trying to replicate some of these issues over the next few days and will see if I can get back to you about it Thanks in advance for your patience! |
I think your assessment is correct that you are disconnecting the underlying TLS connection without stopping the MQTT Agent. Assuming that your implementation is similar to core_mqtt_agent_manager.c which uses
If your implementation is different, please share your complete implementation. |
Hello, I am closing this issue as there hasn't been any update. Thanks |
Hello,
We are trying to disconnect with AWS IoT MQTT broker after the provisioning session is complete. However, it seems like it will crash due to
MQTT_ProcessLoop
is still running.We are using
xTlsDisconnect()
to disconnect.What is the good way to disconnect correctly and reconnect to AWS IoT again?
The text was updated successfully, but these errors were encountered: