Commit Graph

448 Commits

Author SHA1 Message Date
Chirag Atal cc83b3db4b esp_matter_attribute: Moving the console commands for get/set attributes from the application to esp_matter
These commands support both zap data model and esp matter data model applications.
2022-03-10 19:09:54 +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 f728458c91 Merge branch 'readme-change' into 'main'
Update switch readme

See merge request app-frameworks/esp-matter!91
2022-03-10 18:35:07 +08:00
PSONALl 13755cb263 Update switch readme 2022-03-10 15:18:17 +05:30
PSONALl ee7a45f8f1 Add default configs for light 2022-03-09 13:21:03 +05:30
Hrishikesh Dhayagude 6f8acdeb83 Merge branch 'task/client_clusters' into 'main'
esp_matter_client: Adding APIs to support connect and then sending commands from a client

See merge request app-frameworks/esp-matter!72
2022-03-03 12:12:38 +08:00
Shu Chen b0f606f504 Merge branch 'example/bridge-app-zigbee' into 'main'
Example: Add app_bridge component and bridge_zigbee example

See merge request app-frameworks/esp-matter!75
2022-03-01 09:57:12 +08:00
WanqQixiang 685a6c8a06 Add app_bridge component and bridge_zigbee app (support on_off light device) 2022-02-25 10:48:16 +08:00
Chirag Atal b55cbf6661 esp_matter_client: Adding APIs to support connect and then sending commands from a client
zap_common: Adding all the client commands.
switch: Removing binding handler from the example since it is already handled in esp_matter.
switch/app_driver: Add support for sending commands.
2022-02-23 18:29:57 +05:30
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
Shu Chen 92b356c557 Merge branch 'move_ota' into 'main'
Move app_ota to esp_matter_ota component

See merge request app-frameworks/esp-matter!74
2022-02-11 10:58:04 +00:00
WanqQixiang b75040657b Move app_ota to esp_matter_ota component 2022-02-10 15:10:09 +08:00
Hrishikesh Dhayagude 5709c98cb1 Merge branch 'feature/thermostat_support' into 'main'
esp_matter: Add support for thermostat device type

See merge request app-frameworks/esp-matter!71
2022-02-10 05:15:09 +00:00
Hrishikesh Dhayagude 4e2f8f0d1f Merge branch 'task/cmake_fix' into 'main'
cmake: Minor change to remove the example's directory name

See merge request app-frameworks/esp-matter!69
2022-02-08 18:04:41 +00:00
Chirag Atal 5b61445b77 esp_matter: Add support for thermostat device type 2022-02-08 18:21:09 +05:30
Sonali Patil 332b42322b Add switch example to control remote device (light) 2022-02-07 17:58:14 +00:00
Chirag Atal 3d03223f3a cmake: Minor change to remove the example's directory name
This makes it easier for adding new examples
2022-02-04 17:12:51 +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
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 3f364de9af zap_common: Moving callback-stup to zap_common
Removing cluster specific weak functions from the file
2022-01-28 18:06:18 +05:30
Chirag Atal 83b9e28590 zap_common: Added common zap code here which overrides the zap-generated
Removed the generic files for light and rainmaker_light examples.
2022-01-28 18:05:22 +05:30
Hrishikesh Dhayagude bb1e9aa101 Merge branch 'update_matter_repo' into 'main'
Matter: Update Matter repo to 1a65c20ed9 based on upstream commit 77ab003e5f

See merge request app-frameworks/esp-matter!64
2022-01-27 17:10:46 +00:00
WanqQixiang 9c16cbf318 Add ESP32-S3 Target in device_hal 2022-01-27 18:55:59 +08:00
WanqQixiang 0708e5ba19 Update matter repo to 1a65c20ed9 base on origin 77ab003e5f 2022-01-27 18:41:46 +08:00
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
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
WanqQixiang 26a49b27cb Add OTA Requestor for light app and fix on-off command bug 2021-12-17 19:00:22 +08:00
Jiacheng Guo bb835d7baf Support ICMPv6 RIO handling
* Add support for ICMPv6 RIO handling for ESP32
* Update ESP-IDF release to v4.4 for route hook support
2021-12-09 12:15:15 +08:00
Jiacheng Guo 5b383fb9f9 submodule: update connectedhomeip to version 2e85d48cf
* Update ZAP file to include required clusters and commands
* Regenerate ZAP
* Fix build & pairing
* Move OpenThread launch to examples
2021-12-03 11:44:06 +08:00
Hrishikesh Dhayagude 10139666e6 Merge branch 'task/diagnostics_console' into 'main'
esp_matter_console: Add diagnostcs commands support

See merge request app-frameworks/esp-matter!51
2021-12-01 11:01:40 +00:00
Chirag Atal 45fff75fcc esp_matter_console: Add console diagnostcs commands support 2021-11-26 19:29:33 +05:30
Jiacheng Guo ff861b03be ci: format current code 2021-10-25 17:41:34 +08:00
Jiacheng Guo c40bf209b4 examples: post Matter initialization to the scheduler
This MR moves Matter stack initialization to the scheduler to prevent
stack overflow on the main task.
2021-10-22 16:38:53 +08:00
WanqQixiang a54b1e0f42 Submodule: update connectedhomeip submodule to test_event_6_esp branch
The test_event_6_esp branch fixes some errors for esp32h2 platform based on TE6 branch
2021-10-14 20:21:59 +08:00
Chirag Atal 0411e34a9b esp_matter_console: Separating console/shell into another component
The removes the shell APIs from app_main and also adds provision for other components to add their own commands.
2021-10-13 14:43:28 +05:30
Chirag Atal 9fe6acd7d3 app_qrcode: Added qrcode to be displayed on the device console for commissioning.
qrcode: Using the qrcode component from esp-idf/examples/common_components.
2021-10-12 18:34:50 +05:30
Chirag Atal 1ba053c862 esp_matter_standard: Adding standard names for endpoints and attributes
Using these standard names in app_driver, app_matter and app_rainmaker files.
2021-10-12 12:24:44 +05:30
Chirag Atal e918dff76e esp_matter: Added support for common callbacks for all the attributes 2021-10-12 12:24:41 +05:30
Chirag Atal e49e0d7d59 cmake: Selecting esp32 as default IDF_TARGET if it is not set explicitly.
This chooses esp32_devkit_c by default if no configuration for the ESP_MATTER_DEVICE_PATH or IDF_TARGET is done.
2021-09-28 13:37:45 +05:30
WanqQixiang 78195e39b6 bugfix: remove srp service register in on_device_event function 2021-09-23 10:43:32 +08:00
PSONALl 3fc15c1038 Add support of descriptor cluster in esp-matter examples 2021-09-22 14:22:59 +05:30
WanqQixiang d1a53e1cf1 example: add device esp32h2_devkit_c to example light 2021-09-16 10:21:28 +08:00
WanqQixiang b64b7f3d3e Matter: Update connectedhomeip submodule to test_event_5_esp branch
The test_event_5_esp branch is based on the upstream test_event_5 branch, and adds platform support for ESP32-H2.
2021-09-14 15:19:51 +08:00
WanqQixiang ce7d09035f drivers: Restructure boards and drivers into device_hal 2021-08-31 10:45:14 +08:00
Hrishikesh Dhayagude 9af0fae34e ESP Matter beta release 2021-08-11 20:19:49 +05:30