cluster::destroy() freed the cluster memory and its children (attributes, commands, events) but never removed the cluster from the parent endpoint's linked list, leaving a dangling pointer. This caused use-after-free crashes when creating a new cluster on the same endpoint after destroying one. Fix: look up the parent endpoint via the endpoint_id stored in the cluster struct and unlink before freeing, consistent with how attribute::destroy, command::destroy and event::destroy handle their parent lists.
Espressif's SDK for Matter
Tools
Documentation
Introduction
Espressif's SDK for Matter is the official Matter development framework for ESP32 series SoCs. It is built on top of the open source Matter SDK, and provides simplified APIs, commonly used peripherals, tools and utilities for security, manufacturing and production accompanied by exhaustive documentation. It includes rich production references, aimed to simplify the development process of Matter products and enable the users to go to production in the shortest possible time.
Supported Matter specification versions
| Matter Specification Version | Supported Branch |
|---|---|
| v1.0 | release/v1.0 |
| v1.1 | release/v1.1 |
| v1.2 | release/v1.2 |
| v1.3 | release/v1.3 |
| v1.4 | release/v1.4 |
| v1.4.2 | release/v1.4.2 |
| v1.5 | release/v1.5 |
| v1.6 (Ongoing effort) | main |
Getting the repositories
For efficient cloning of the ESP-Matter repository, please refer Getting the Repositories section in the ESP-Matter Programming Guide.
Supported ESP-IDF and connectedhomeip versions
- This SDK currently works with commit [8f943388af] (https://github.com/project-chip/connectedhomeip/tree/8f943388af) of connectedhomeip.
- For Matter projects development with this SDK, it is recommended to utilize ESP-IDF v5.4.1.
- For ESP32C5 and ESP32C61, it is recommended to utilize ESP-IDF v5.5.1.
Documentation
For a simplified explanation of Matter concepts and internals, please check out the Espressif's Matter blog series.
Refer the Programming Guide for the latest version of the documentation.
Matter Specifications
Download the Matter specification from CSA's official site