egoltzman wrote on February 19, 2019:
My device code is based on the Shadow Demo, that is, it is using Shadow API.
I need to identify connection lost and then to react on it.
I see in aws_api.c prvShadowMQTTCallback that if the MQTT event is eMQTTAgentDisconnect then the code resets the subscriptions to update\get\delete and return with no additional actions.
My questions here are:
- How can I know that there was a disconnection?
- Is there any mechanism that I can use to automatically try to resubscribe?