Skip to content

smartDeviceConnectionDisconnectionEvent : "disconnectReason": "DUPLICATE_CLIENTID", (CA-337) #222

Open
@PaulAnurag

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 :

  1. CONFIG_MQTT_STATE_ARRAY_MAX_COUNT=10
  2. CONFIG_MQTT_MAX_CONNACK_RECEIVE_RETRY_COUNT=6
  3. CONFIG_MQTT_PINGRESP_TIMEOUT_MS=10000
  4. CONFIG_MQTT_RECV_POLLING_TIMEOUT_MS=15
  5. CONFIG_MQTT_SEND_TIMEOUT_MS=20000

core_mqtt_config_defaults :

  1. PACKET_TX_TIMEOUT_MS = 30000
  2. PACKET_RX_TIMEOUT_MS = 30000

Please suggest me if there is any change required.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions