mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user