esp_matter: Add support for endpoint_delete() API

Also added some additional checks for the data model APIs.
This commit is contained in:
Chirag Atal
2022-01-19 16:15:10 +05:30
parent 1c6e6fd96a
commit 169feb9e16
12 changed files with 302 additions and 25 deletions
+2 -1
View File
@@ -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.
*/
+2 -1
View File
@@ -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.
*/