mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
Merge branch 'fix/endpoint_hierarchy' into 'main'
[All-device-types-app] Fix endpoint hierarchy for composite devices See merge request app-frameworks/esp-matter!1492
This commit is contained in:
@@ -402,6 +402,7 @@ int create(uint8_t device_type_index)
|
|||||||
ESP_LOGE(TAG, "Matter create endpoint failed");
|
ESP_LOGE(TAG, "Matter create endpoint failed");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
esp_matter::endpoint::set_parent_endpoint(tcc_endpoint, endpoint);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -417,6 +418,7 @@ int create(uint8_t device_type_index)
|
|||||||
ESP_LOGE(TAG, "Matter create endpoint failed");
|
ESP_LOGE(TAG, "Matter create endpoint failed");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
esp_matter::endpoint::set_parent_endpoint(tcc_endpoint, endpoint);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ESP_MATTER_AIR_PURIFIER: {
|
case ESP_MATTER_AIR_PURIFIER: {
|
||||||
@@ -465,6 +467,7 @@ int create(uint8_t device_type_index)
|
|||||||
ESP_LOGE(TAG, "Matter create endpoint failed");
|
ESP_LOGE(TAG, "Matter create endpoint failed");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
esp_matter::endpoint::set_parent_endpoint(ps_endpoint, endpoint);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ESP_MATTER_WATER_LEAK_DETECTOR: {
|
case ESP_MATTER_WATER_LEAK_DETECTOR: {
|
||||||
@@ -551,6 +554,7 @@ int create(uint8_t device_type_index)
|
|||||||
ESP_LOGE(TAG, "Matter create endpoint failed");
|
ESP_LOGE(TAG, "Matter create endpoint failed");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
esp_matter::endpoint::set_parent_endpoint(ps_endpoint, endpoint);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ESP_MATTER_MICROWAVE_OVEN: {
|
case ESP_MATTER_MICROWAVE_OVEN: {
|
||||||
|
|||||||
Reference in New Issue
Block a user