endpoint: Added support for priv_data

This priv_data is returned to the application in the attribute_update and the identify callbacks.
This commit is contained in:
Chirag Atal
2022-08-02 15:53:46 +05:30
parent 0800f66c0e
commit d719c97b88
12 changed files with 118 additions and 84 deletions
@@ -28,7 +28,8 @@ esp_matter_bridge_device_t *esp_matter_bridge_create_device(node_t *node)
esp_matter_bridge_device_t *dev = (esp_matter_bridge_device_t *)calloc(1, sizeof(esp_matter_bridge_device_t));
dev->node = node;
bridged_node::config_t bridged_node_config;
dev->endpoint = bridged_node::create(node, &bridged_node_config, ENDPOINT_FLAG_DESTROYABLE | ENDPOINT_FLAG_BRIDGE);
dev->endpoint = bridged_node::create(node, &bridged_node_config, ENDPOINT_FLAG_DESTROYABLE | ENDPOINT_FLAG_BRIDGE,
NULL);
if (!(dev->endpoint)) {
ESP_LOGE(TAG, "Could not create esp_matter endpoint for bridged device");
free(dev);