Description
Hello Folks,
I am using the https://github.com/espressif/esp-aws-iot/tree/release/202012.04-LTS branch for my project. In this project, whenever there is a slight disconnection in internet for a couple of seconds, my device goes offline and disconnects for AWS.
On checking the smartDeviceConnectionDisconnectionEvent in aws iot core, I can see the below disconnection event :
{
"clientId": "xxxxxxxxxxxxxxxx",
"timestamp": 1716871954622,
"eventType": "disconnected",
"clientInitiatedDisconnect": false,
"sessionIdentifier": "xxxxxxxxxxxxxxxx",
"principalIdentifier": "xxxxxxxxxxxxxxxx",
"disconnectReason": "DUPLICATE_CLIENTID",
"versionNumber": 6
}
I am trying to tune the different Macros such as :
SDK Config Core Mqtt Macro :
- CONFIG_MQTT_STATE_ARRAY_MAX_COUNT=10
- CONFIG_MQTT_MAX_CONNACK_RECEIVE_RETRY_COUNT=6
- CONFIG_MQTT_PINGRESP_TIMEOUT_MS=10000
- CONFIG_MQTT_RECV_POLLING_TIMEOUT_MS=15
- CONFIG_MQTT_SEND_TIMEOUT_MS=20000
core_mqtt_config_defaults :
- PACKET_TX_TIMEOUT_MS = 30000
- PACKET_RX_TIMEOUT_MS = 30000
Please suggest me if there is any change required.
Activity