aws-amplify/aws-sdk-ios

Why awsiot mqtt keepAliveTimeInterval default is 300s?

weidongliu opened this issue · 2 comments

In the awsiot 2.33.10 version, I saw the mqttConfiguration attribute comment of AWSIoTDataManager.h saying the default is 60s, but in AWSIoTDataManager.m I found that it is actually 300s. This will mislead developers. Why do you change it to 300s?
image
image

Hi @weidongliu, thanks for opening this issue.

The value for keepAliveTimeInterval was updated to 300 seconds in version 2.6.6 back in 2017, but it seems the corresponding attribute comment was not updated to reflect that.

We'll take note and update it.

The attribute comment has been updated in the latest 2.36.0 release.