mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
esp_matter: Add support for endpoint_delete() API
Also added some additional checks for the data model APIs.
This commit is contained in:
@@ -58,7 +58,8 @@ extern "C" void app_main()
|
||||
|
||||
/* Create matter device */
|
||||
esp_matter_node_t *node = esp_matter_node_create(&node_config, app_attribute_update_cb, NULL);
|
||||
esp_matter_endpoint_t *endpoint = esp_matter_endpoint_create_color_dimmable_light(node, &light_config);
|
||||
esp_matter_endpoint_t *endpoint = esp_matter_endpoint_create_color_dimmable_light(node, &light_config,
|
||||
ENDPOINT_MASK_NONE);
|
||||
/**
|
||||
These node and endpoint handles can be used to create and add other endpoints and other clusters to the endpoints.
|
||||
*/
|
||||
|
||||
@@ -59,7 +59,8 @@ extern "C" void app_main()
|
||||
|
||||
/* Create matter device */
|
||||
esp_matter_node_t *node = esp_matter_node_create(&node_config, app_attribute_update_cb, NULL);
|
||||
esp_matter_endpoint_t *endpoint = esp_matter_endpoint_create_color_dimmable_light(node, &light_config);
|
||||
esp_matter_endpoint_t *endpoint = esp_matter_endpoint_create_color_dimmable_light(node, &light_config,
|
||||
ENDPOINT_MASK_NONE);
|
||||
/**
|
||||
These node and endpoint handles can be used to create and add other endpoints and other clusters to the endpoints.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user