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
{{ message }}
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.
Because of the Device Shadow client consuming the MQTT callback, no feedback is provided to the application level if an MQTT disconnect occurs. The callback functionality only reaches back as far as prvShadowMQTTCallback. This function could/should report the disconnect back to the application so it can reconnect, if desired.
Describe the solution you would like
Shadow Client could contain reference to an application call-back to handoff the MQTT callback to if there is nothing of interest for the Shadow Client in the callback.
(I believe) Currently without a way to detect an MQTT disconnect, the application can not detect the disconnect without first failing to publish. If this is incorrect, I do not see another way the application can detect this failure.
Thank you! 😄
The text was updated successfully, but these errors were encountered:
Desired Feature Description
Because of the Device Shadow client consuming the MQTT callback, no feedback is provided to the application level if an MQTT disconnect occurs. The callback functionality only reaches back as far as
prvShadowMQTTCallback
. This function could/should report the disconnect back to the application so it can reconnect, if desired.Describe the solution you would like
Shadow Client could contain reference to an application call-back to handoff the MQTT callback to if there is nothing of interest for the Shadow Client in the callback.
This would allow the application to respond to
eMQTTAgentDisconnect
events in an alternative way other than simply printing"Warning: got an MQTT disconnect message."
.Additional context
(I believe) Currently without a way to detect an MQTT disconnect, the application can not detect the disconnect without first failing to publish. If this is incorrect, I do not see another way the application can detect this failure.
Thank you! 😄
The text was updated successfully, but these errors were encountered: