components: use id based APIs to get endpoint, cluster, attribute handle

This commit is contained in:
Shubham Patil
2025-01-13 10:35:15 +05:30
parent 466b93285a
commit f00fb9b6e6
4 changed files with 13 additions and 39 deletions
@@ -363,8 +363,7 @@ static esp_err_t sign_data_command_callback(const ConcreteCommandPath &command_p
static esp_err_t custom_cluster_create()
{
/* Get the endpoint */
node_t *node = node::get();
endpoint_t *endpoint = endpoint::get(node, cluster::rainmaker::endpoint_id);
endpoint_t *endpoint = endpoint::get(cluster::rainmaker::endpoint_id);
/* Create custom rainmaker cluster */
cluster_t *cluster = esp_matter::cluster::create(endpoint, cluster::rainmaker::Id, CLUSTER_FLAG_SERVER);