Closed TJvV-DT closed 3 months ago
@TJvV-DT ,
The esp-zigbee-sdk v1.4.0 does not support the ZCL data model reuse. Please refer to comments.
Suggestion
esp_err_t err = ESP_FAIL;
TEST_LOG("Add client cluster");
err = esp_zb_cluster_list_add_custom_cluster(esp_zb_cluster_list, create_attributes_list(), ESP_ZB_ZCL_CLUSTER_CLIENT_ROLE);
if (err != ESP_OK)
{
TEST_LOG_LEVEL(ESP_LOG_ERROR, "Failed to add client cluster: %x", err);
return err;
}
TEST_LOG("Add server cluster");
err = esp_zb_cluster_list_add_custom_cluster(esp_zb_cluster_list, create_attributes_list(), ESP_ZB_ZCL_CLUSTER_SERVER_ROLE);
if (err != ESP_OK)
{
TEST_LOG_LEVEL(ESP_LOG_ERROR, "Failed to add server cluster: %x", err);
return err;
}
It looks like this works. It would be nice to get clearer error messages when things like this happen.
Answers checklist.
IDF version.
v5.1.3-474-gd06c758489
esp-zigbee-lib version.
1.4.0 and 1.4.1
esp-zboss-lib version.
1.4.0 and 1.4.1
Espressif SoC revision.
ESP32-C6
What is the expected behavior?
I expect the device to come online and join my ZB network as it did with SDK v1.3.2.
What is the actual behavior?
Instead, the application crashes with
assert failed: heap_caps_free heap_caps.c:387 (heap != NULL && "free() target pointer is outside heap areas")
Steps to reproduce.
To reproduce:
idf.py fullclean build erase-flash flash monitor
esp-zboss-lib
andesp-zigbee-lib
versions inidf_component.yml
idf.py fullclean build erase-flash flash monitor
Code:
More Information.
No response