awslabs/aws-iot-core-integration-with-nvidia-deepstream

[Question] How to Implement Disconnection Resilience

lummish opened this issue · 1 comments

Thanks for publishing this implementation––very helpful.

I was reading through the source code and noticed a comment saying something to the effect of "auto reconnect how?"

Is auto-reconnection implemented in this library? If so, how are messages that are sent when the publisher is disconnected handled? Would this be something that users would have to implement themselves? Any recommendations as to how to go about that?

Apologies for the delayed response.
@lummish the example is implemented with the older version of the CSDK - 3.1.1. Here's how to adjust the settings:
http://aws-iot-device-sdk-embedded-c-docs.s3-website-us-east-1.amazonaws.com/aws__iot__mqtt__client_8h.html#a3acc419d466284c38e8fdb0b727a4849

Here's the specific location in the .h file where the function is declared:
https://github.com/aws/aws-iot-device-sdk-embedded-C/blob/v3.1.1/include/aws_iot_mqtt_client.h#L458