Commit Graph

17 Commits

Author SHA1 Message Date
Chirag Atal ce9b734d56 esp_matter_attribute: Fix attribute values for uint16 and strings
This includes all the attributes other than uint8.
Using memcpy instead of just setting the pointers.
Also allocating and freeing the buffers for arrays and strings.
2022-03-10 19:09:48 +05:30
Hrishikesh Dhayagude 7befdbad22 Merge branch 'task/flags_restructure' into 'main'
esp_matter: Using the flags enums instead of mask macros

See merge request app-frameworks/esp-matter!81
2022-02-24 13:13:26 +00:00
Chirag Atal ddf15359ea esp_matter: Using the flags enums instead of mask macros for endpoints, clusters, attributes, commands. 2022-02-17 16:42:36 +05:30
WanqQixiang 782e64dac6 Add full network commissioning support 2022-02-17 14:57:10 +08:00
WanqQixiang 82de9551e1 Add bridged_node endpoint template 2022-02-10 13:58:19 +08:00
Chirag Atal 925d598df0 esp_matter_cluster: Adding cluster functions support 2022-02-02 16:31:30 +05:30
Chirag Atal 1fc7c1485f esp_matter_core: Assigning the endpoint id internally
Also added support for endpoint's device_type_id
2022-02-02 11:53:54 +05:30
Chirag Atal 169feb9e16 esp_matter: Add support for endpoint_delete() API
Also added some additional checks for the data model APIs.
2022-01-31 14:27:18 +05:30
Hrishikesh Dhayagude 1c6e6fd96a Merge branch 'task/command_callback' into 'main'
matter_command: Add callback support for custom commands.

See merge request app-frameworks/esp-matter!62
2022-01-31 08:40:47 +00:00
Chirag Atal dec7e3cf7f matter_command: Add callback support for custom commands. 2022-01-28 18:42:58 +05:30
Chirag Atal 1e265d93bc zap-generated: Making the plugin init callbacks generic by using a common callback instead
esp_matter_cluster: Setting cluster plugin init callback dynamically. The callbacks are then called from the common callback.
2022-01-28 18:26:46 +05:30
Chirag Atal e20183a04e app_driver: Setting the default attribute values for the driver
Getting the default values from the data model and updating the driver with those values.
2022-01-19 16:40:24 +05:30
Hrishikesh Dhayagude fca54535da Merge branch 'fix-read-attributes-error' into 'main'
Bugfix: Fix attribute reading error

See merge request app-frameworks/esp-matter!61
2022-01-19 10:56:33 +00:00
WanqQixiang 91d55669dc Bugfix: Fix attribute reading error 2022-01-19 17:29:36 +08:00
WanqQixiang 80909ccc20 Rename app_openthread to esp_matter_openthread 2022-01-14 19:39:07 +08:00
WanqQixiang 83dbaf5795 Fix ESP32H2 errors after refactor 2022-01-11 15:49:45 +08:00
Chirag Atal a270477e16 esp_matter: Adding data model APIs for endpoints, clusters, attributes and commands.
This is a middle layer between application and chip submodule.
esp_matter_core: Data model APIs in the form of linked lists. It also has the APIs for initialisations for matter.
esp_matter_endpoint: APIs for endpoint. This adds the mandatory clusters for the endpoint.
esp_matter_cluster: APIs for cluster. This adds the mandatory attributes and commands for the cluster.
esp_matter_attribute: APIs for attribute value. It also manages the attribute related matter callbacks.
esp_matter_command: Callback APIs for commands.
esp_matter_attribute: Giving 2 callbacks to the application, pre_attribute and post_attribute.

app_main: Dynamically creating the data model using the top level APIs.
app_matter: Moved to esp_matter_start() in esp_matter. Also moved the post_attribute_callback to esp_matter_attribute and moved the event_callback to app_main.
app_driver: Moved with app_main. Using IDs instead of macros.
app_driver: Changing the console usage from names to IDs.
app_rainmaker: Dynamically creating the rainmaker data model from the matter data model. The endpoint_id, cluster_id, attribute_id need to be handled accordingly.

cmake: Moved the chip submodule sources and includes from app_main to esp_matter.
zap-generated: Using esp_matter_command instead of IMClusterCommandHandler. Dynamically creating the data model instead of using macros from endpoint_config.
zap-generated: Regenerated using the zap tool with matter_root_node and matter_color_dimmable_light device types. Also enabled wifi and thread for network commissioning cluster.
device_hal: Added support for esp32s2 with hollow drivers.

zap_light: Adding another example which uses the zap-generated data model instead of the esp_matter data model.
ci: Added zap_light example to ci.
2022-01-10 14:19:50 +05:30