Closed sakthisg closed 3 years ago
First of all it is highly recommended that you use the v2 sdk
How do you plan on forcibly disconnecting? The sdk will keep trying to reconnect with exponential back-off until it hits the SetMaxReconnectBackoffTimeout of 128 seconds. This can be changed, and the sdk will keep trying to connect at this interval. There shouldn't be any problems with doing this multiple times.
If you haven't already take a look at the Dev Guide.
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
hi I am exploring the option of disconnecting and connecting the IOT based on the usage. Consider a scenario, where the device is not used for many days, i don't want the device to connect to IOT Core every time the device boots up. Shall i forcibly Disconnect MQTT Client which is TLS/OpenSSL based.? -> In this case, will the client get Reconnect call back or not which has been subscribed during the connect ? -->is there any issue if i do multiple time connect and disconnect based on the usage of IOT Core?