mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
components: use id based APIs to get endpoint, cluster, attribute handle
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user