My Zigbee door sensor automatically leaves the network and attempts to rejoin after three retry attempts without receiving a response.

I have some issues with the default response handling.

My Zigbee door sensor sends a message, and I reply with the following code:

```
    if (!cmd_info->disable_default_response) {
        ZB_ZCL_SEND_DEFAULT_RESP(
            zcl_cmd_buf,                           // buffer
            dst_addr,                              // addr
            ZB_APS_ADDR_MODE_16_ENDP_PRESENT,      // addr_mode
            dst_ep,                                // dst_ep
            SIMPLE_GW_ENDPOINT,                    // ep (endpoint của gateway)
            ZB_AF_HA_PROFILE_ID,                   // prof_id
            ZB_ZCL_CLUSTER_ID_IAS_ZONE,            // cluster_id
            cmd_info->seq_number,                  // seq_num
            cmd_info->cmd_id,                      // cmd
            ZB_ZCL_STATUS_SUCCESS                  // status_code
        );
    }
```

However, the sensor keeps resending the same message, and after 3 attempts, it retries reconnecting to the network.



Note: During the period when the device is attempting to reconnect, sensor values will not be received. I need some advice on how to resolve this issue.

Related