Commit Graph

40 Commits

Author SHA1 Message Date
WangQixiang f61e804313 Bugfix: Add record for boot reason event 2022-07-27 10:28:00 +08:00
Shu Chen 110a612f05 Merge branch 'bugfix/nonvolatile-attr' into 'main'
bugfix: Add nonvolatile attribute initializing for on_off cluster

See merge request app-frameworks/esp-matter!152
2022-07-01 17:59:40 +08:00
WanqQixiang 51c0032c50 bugfix: Add nonvolatile attribute initializing for on_off cluster 2022-07-01 11:27:35 +08:00
WanqQixiang dea7c14236 Bugfix: Add HandleServerStarted function to record start_up event 2022-06-30 12:20:53 +08:00
Chirag Atal 6e50d9dbac esp_matter_core: Handle creating duplicate clusters better 2022-05-31 18:13:03 +05:30
Chirag Atal a14fb95d08 esp_matter_core: Check for already existing cluster while creating
If it exists, return the existing one.
Similar checks for attributes and commands.
esp_matter_cluster: Creating attributes only if the cluster is a server.
2022-05-28 07:43:20 +08:00
Chirag Atal 28b385d228 esp_matter: Change all IDs to their correct data types. 2022-05-28 07:42:00 +08:00
Shubham Patil a3135d346c Mass manufacturing tool for Matter
Utility generates manufacturing NVS partition image and Onboarding QR codes
2022-05-04 15:10:15 +05:30
Chirag Atal 96c6a92a40 app_reset: Add support for factory reset on button.
esp_matter: Supporting factory reset API.
app_driver: Enabling factory reset on button.
2022-05-04 10:43:44 +05:30
Chirag Atal b7a380e556 attribute: Add nvs support 2022-05-04 10:38:24 +05:30
WangQixiang 860ab38e86 Fix lighting app of esp32h2 and bridge-zigbee app errors 2022-04-28 20:40:03 +08:00
Chirag Atal 55e9c353f5 submodule: Update the submodule to 6109d1434
esp_matter_core: Some changes for device type id.
esp_matter_command: Corresponding changes for renaming of command flags.
esp_matter_ota: Corresponding changes from upstream examples.
zap-generated: Added a common access.h with all the clusters and other corresponding changes in endpoint_config.h.
zap_light: Regenerated zap-generated with the same light.zap file.
2022-04-25 19:55:53 +05:30
Chirag Atal 62a4fbbd3d attribute: Add support for overriding attribute read and write
This can also be used for an attribute whose value is dynamic and needs to be fetched from the application.
2022-04-13 16:50:00 +05:30
Chirag Atal dc92697de8 esp_matter: API documentation
Also some other minor restructurings.
2022-04-07 11:36:02 +05:30
Chirag Atal b4d240e4a1 esp_matter: Using namespaces everywhere
Adding constructors to structs for default values of the cluster configs.
esp_matter_command: Removing the support for custom command callbacks and instead using the standard command callback itself. Also some other minor changes to make it easier for the application to use the standard command callback.
2022-04-06 10:55:58 +05:30
Hrishikesh Dhayagude f491dbf960 Merge branch 'task/attribute_wrapper' into 'main'
esp_matter_attribute: Restructuring and fixing the default value

See merge request app-frameworks/esp-matter!95
2022-03-29 00:30:30 +08:00
Chirag Atal 6a28250523 esp_matter_core: Fix the default attribute value
The default value of the attribute being set when creating the submodule data model was incorrect.
Also adding support for attribute bounds.
2022-03-28 12:02:30 +05:30
InfiniteYuan b1d8f44f40 esp_matter_attribute: Fix enable dynamic endpoint without chip stack lock 2022-03-22 21:58:31 +08:00
Chirag Atal 205a25913a esp_matter_attribute: Adding wrappers for all attribute_create() APIs
esp_matter_cluster: Removing configs for attributes which are handled internally.
esp_matter_attribute_utils: Renamed the old esp_matter_attribute files.
2022-03-22 11:05:50 +05:30
Chirag Atal 11d0bb9733 app_rainmaker: Add support for custom rainmaker cluster
This also adds the custom attribute and custom command for required user node association.
sdkconfig.defauls: Setting self claim by default. This does not get set for esp32, since the config option is not valid for esp32.
2022-03-21 11:49:06 +05:30
Chirag Atal 2f41c1d7a1 submodule: Updating submodule to current master (commit id: 10b804696)
esp_matter_command: Removing the response commands support. This is now managed internally for each command separately.
esp_matter_command: Adding another flag for commands. This is used to generate the command lists.
esp_matter_core: Add support for client generated and server generated command lists in clusters.
esp_matter_core: Add support for data versions for endpoints and minor restructuring.
esp_matter_core: Add support to lock and unlock chip_stack. Using this lock in esp_matter_attribute for reading and writing attributes.
esp_matter_client: Binding changes.
esp_matter_cluster: Changing binding commands to binding attribute.
esp_matter_cluster: Adding the clusters/attributes/commands which were 'not implemented' before and are supported now.

esp_matter_cluster: Minor renames.
esp_matter_attribute: Minor changes.
esp_matter_ota: Minor changes.

zap-generated: Removing CHIPClusters.cpp and CHIPClientCallbacks.cpp and updating their corresponding header files.
zap-generated: Minor changes in gen_config.h, callback-stub.cpp and endpoint_config.h.
zap-generated: Added new empty files to prevent cmake warnings.
zap-generated: Updated zap_light's zap-generated.
2022-03-15 14:42:38 +05:30
Shubham Patil 025f04c93c Added esp_matter_dac and using it in esp_matter_core 2022-03-14 17:23:26 +05:30
Chirag Atal 01e00cbf7d esp_matter_attribute: Passing esp_matter_attr_val_t by reference instead of passing it as value everywhere. 2022-03-10 20:15:49 +05:30
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