esp_matter: create a data_model directory and move data_model related codes to it

This commit is contained in:
WanqQixiang
2025-01-21 19:08:13 +08:00
parent 05e67b276b
commit 13a15243cc
50 changed files with 3454 additions and 3094 deletions
+8 -7
View File
@@ -21,13 +21,14 @@ PROJECT_NAME = "Programming Guide"
## and used to include in API reference documentation
INPUT = \
$(PROJECT_PATH)/components/esp_matter/esp_matter_endpoint.h \
$(PROJECT_PATH)/components/esp_matter/esp_matter_cluster.h \
$(PROJECT_PATH)/components/esp_matter/esp_matter_attribute.h \
$(PROJECT_PATH)/components/esp_matter/esp_matter_command.h \
$(PROJECT_PATH)/components/esp_matter/esp_matter_core.h \
$(PROJECT_PATH)/components/esp_matter/esp_matter_event.h \
$(PROJECT_PATH)/components/esp_matter/esp_matter_client.h \
$(PROJECT_PATH)/components/esp_matter/data_model/esp_matter_endpoint.h \
$(PROJECT_PATH)/components/esp_matter/data_model/esp_matter_cluster.h \
$(PROJECT_PATH)/components/esp_matter/data_model/esp_matter_attribute.h \
$(PROJECT_PATH)/components/esp_matter/data_model/esp_matter_command.h \
$(PROJECT_PATH)/components/esp_matter/data_model/esp_matter_event.h \
$(PROJECT_PATH)/components/esp_matter/data_model/esp_matter_data_model.h \
$(PROJECT_PATH)/components/esp_matter/esp_matter_core.h \
$(PROJECT_PATH)/components/esp_matter/esp_matter_client.h \
## Get warnings for functions that have no documentation for their parameters or return value
##
@@ -0,0 +1,9 @@
Data Model
==========
This has the high level APIs for Data Model.
API reference
-------------
.. include-build-file:: inc/esp_matter_data_model.inc
+1
View File
@@ -4,6 +4,7 @@
.. toctree::
:maxdepth: 1
esp_matter_data_model.rst
esp_matter_endpoint.rst
esp_matter_cluster.rst
esp_matter_attribute.rst
+1 -1
View File
@@ -648,7 +648,7 @@ for clarity on the terms like endpoints, clusters, etc. that are used in this se
node_t *node = node::create(&node_config, app_attribute_update_cb, NULL);
- We will use the ``color_temperature_light`` standard device type in this
case. All standard device types are available in :project_file:`esp_matter_endpoint.h <components/esp_matter/esp_matter_endpoint.h>` header file.
case. All standard device types are available in :project_file:`esp_matter_endpoint.h <components/esp_matter/data_model/esp_matter_endpoint.h>` header file.
Each device type has a set of default configuration that can be
specific as well.
+1 -1
View File
@@ -170,7 +170,7 @@ A1.8 Why does free RAM increase after first commissioning
After the first commissioning, you may notice that the free RAM increases. This is because, by default,
BLE is only used for the commissioning process. Once the commissioning is complete, BLE is deinitialized,
and all the memory allocated to it is recovered. Here's the link to the
:project_file:`implementation which frees the BLE memory <components/esp_matter/esp_matter_core.cpp#L859-L891>`.
:project_file:`implementation which frees the BLE memory <components/esp_matter/esp_matter_core.cpp#L287-L290>`.
However, if you want to continue using the BLE even after the commissioning process, you can disable the
``CONFIG_USE_BLE_ONLY_FOR_COMMISSIONING``. This will ensure that the memory allocated to the BLE functionality