Commit Graph

121 Commits

Author SHA1 Message Date
Hrishikesh Dhayagude
a2fbfd1267 Merge branch 'rmaker_rest_api' into 'master'
example: Add components controller_rest_apis and controller_custom_cluster for matter controller usage

See merge request app-frameworks/esp-rainmaker!417
2024-05-17 14:53:19 +08:00
Hrishikesh Dhayagude
92a5435a33 Merge branch 'controller/show_dynamic_qrcode' into 'master'
show dynamic QR code on screen for matter_controller_with_touchscreen exmaple.

See merge request app-frameworks/esp-rainmaker!429
2024-05-13 18:15:58 +08:00
Vikram Dattu
904938f1b0 Added support for LEDC driver
This can drive the LED on ESP32C2
2024-05-10 17:58:24 +05:30
Vikram Dattu
5dccee9eac examples: Add support for esp32c2
- Added entry for esp32c2 build in CI
- RAM optimized sdkconfig.defaults.esp32c2
- Disable ws2812 led drivers from non-rmt supported devices
- Use GPIO9 as BOOT button for C2
2024-05-09 20:38:11 +05:30
WanqQixiang
a54560b836 example: Add component controller_rest_apis and controller_custom_cluster for matter controller usage 2024-04-28 12:28:24 +08:00
chendejin
e0715b240d matter_controller: support dynamic QR code 2024-04-08 17:11:10 +08:00
Vikram Dattu
138e2e6983 Add support for closing provisioning window after PoP mismatch
- The feature prevents brute force attacks by not allowing more than allowed PoP attempts
 - Allowed failure attempts are configurable via menuconfig and is 5 by default
 - Change added for both `app_wifi` and `app_wifi_with_homekit`
 - Min IDF version needed (release/v5.1.3)
2024-03-13 15:52:10 +05:30
Sayon Deep
d49fee4e9d Updated documentation for using idf-version v5.2 accross all boards 2024-03-12 12:01:48 +08:00
Sayon Deep
baa7c80e5c Fixed not reporting of params when some device goes offline. 2024-03-12 12:01:48 +08:00
Sayon Deep
63c495c7ec Added reporting of reachability parameter to cloud 2024-03-12 12:01:48 +08:00
chendejin
343739c105 Added Matter controller example with touchscreen. This example supports esp-box and s3-lcd-ev-boards. 2024-03-12 12:01:48 +08:00
Piyush Shah
798825b07d bugfix: ci failures were seen for esp32s2
- Due to some changes in esp-idf after v5.1.3, CONFIG_BT_ENABLED gets set
even for esp32s2, causing issues in compilation.
 - In earlier esp-idf versions, since this was not applicable for esp32-s2,
it was getting skipped even when it was present in sdkconfig.defaults.
 - Added sdkconfig.defaults.esp32s2 and disabled BT explicitly
2024-03-08 20:30:19 +05:30
Sayon Deep
8a201e0db0 matter_controller: Updated the JSON parsing for Invoke command structure changes 2024-02-01 16:34:22 +08:00
Hrishikesh Dhayagude
eaa455d102 Merge branch 'docs/remote_control' into 'master'
matter_controller: Docs to test remote control feature.

See merge request app-frameworks/esp-rainmaker!419
2024-01-18 16:02:03 +08:00
Hrishikesh Dhayagude
539e3a8c8b Merge branch 'increase_nvs_size' into 'master'
examples: Increase nvs partition size for matter examples

See merge request app-frameworks/esp-rainmaker!418
2024-01-18 15:56:01 +08:00
Sayon Deep
66dd3f9206 added instructions for remote control. 2024-01-10 14:44:20 +05:30
Piyush Shah
20d826c232 esp_rainmaker: Update version for idf component manager
app_insights component manifest file also changed for better
handling of component versions.
2024-01-04 13:16:51 +05:30
WanqQixiang
cabbe1e802 examples: Increase nvs partition size for matter examples 2024-01-03 16:30:38 +08:00
WanqQixiang
1c887053d7 examples: fix matter_light building 2023-12-27 10:49:53 +08:00
chendejin
558f2318e4 remove ESP_BOX_PATH ENV require for controller on box 2023-12-11 16:55:10 +08:00
chendejin
41ef0bec9c matter_support: Controller demo on esp32_s3_box_3 2023-12-08 14:54:23 +08:00
Sayon Deep
555f969bcb matter_controller: Support for remote control via CLI and minor fixes
- Added support for wildcard attribute reads
- Changes to support newly added read_done_cb
2023-12-07 16:28:00 +05:30
Sayon Deep
a1dc04151a matter_support: Changes to support new subscribe command format 2023-12-05 11:22:47 +05:30
Piyush Shah
00bf093167 app_wifi: Add an option to provide a custom Proof of Possession (PoP) for provisioning
POP_TYPE_CUSTOM has been added as an option for app_wifi_start().
app_wifi_set_custom_pop() should be used before this.
2023-11-29 13:56:05 +08:00
chendejin
d1354bc4f3 examples: Add matter controller on ESP32-S3-BOX example 2023-11-08 17:30:42 +08:00
Vikram Dattu
10361704b4 wifi-prov cli: Set Wi-Fi creds directly for already provisioned devices
When device is already provisioned, `wifi_prov_mgr_configure_sta` API call fails.
This happens because, provisioning manager is in uninitialized state.
We set Wi-Fi credetials directly using `esp_wifi_set_config` in that case.

Also removed error check on `wifi_prov_mgr_is_provisioned` API call, as for
IDF 4.x APIs return `ESP_ERR_INVALID_STATE`
2023-10-27 18:20:00 +05:30
Vikram Dattu
f1d16cf736 examples: Added support for ESP32C6
1. ESP32C6 button configs for RGB LED and Boot GPIO
2. CI: Added entry for C6 in `.gitlab.yaml`
3. Added `partitions_4mb_optimised.csv` which uses flash to the full extent
  - Created sdkconfig.defaults for esp32c6 and used partitions_4mb_optimised.csv as default
  - This is made default for esp32c6 because, for esp32c6, image sizes exceed config from partitions.csv
4. Fixed matter examples CMakeLits.txt files for c6 support
2023-10-26 17:38:53 +05:30
Piyush Shah
9689b6942b Merge branch 'code/matter_controller_example' into 'master'
examples: Add matter controller example

See merge request app-frameworks/esp-rainmaker!385
2023-10-10 00:35:08 +08:00
WanqQixiang
b5da8d7d4a examples: Add matter controller example 2023-10-09 15:15:56 +08:00
Piyush Shah
cfca241575 idf_component_manager: Add components of esp rainmaker to component manager
Includes esp_rainmaker and esp_schedule
2023-09-22 09:40:00 +05:30
Piyush Shah
f6ed0c4994 components: Updated and moved some components
- qrcode, ws2812_led and gpio_button moved to examples/common
- esp-insights and rmaker_common submodules updated
- json_generator and json_parser components copied from component
  manager so that they can be used for component overrides
2023-09-22 09:39:55 +05:30
Vikram Dattu
9255e94b52 Remove Insights component for IDF >= 5.0 as it is already included by esp-matter
Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2023-09-21 11:25:26 +05:30
Vikram Dattu
7a8b26c936 matter examples: Change flag to -std=gnu++17 to fix build errors
Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2023-09-21 11:18:24 +05:30
Vikram Dattu
c43cd071fa IRAM optimization fix for ESP32 to all examples
From IDF 5.1 and above, we are out of IRAM for ESP32.
Enabled FreeRTOS functions to flash option to save IRAM. This is same existing fix in other examples

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2023-09-15 16:18:47 +05:30
sanket.wadekar
ed52355881 feature: Add APIs to enable/disable local control.
If local control is enabled via config option (CONFIG_ESP_RMAKER_LOCAL_CTRL_AUTO_ENABLE),
the enabling/disabling will happen internally and the behaviour will be
unchanged. However, if the config option is disabled, applications can
still call esp_rmaker_local_ctrl_enable/disable at runtime as and when
required, if CONFIG_ESP_RMAKER_LOCAL_CTRL_FEATURE_ENABLE option is enabled.

Note that the older config option CONFIG_ESP_RMAKER_LOCAL_CTRL_ENABLE
has been renamed to CONFIG_ESP_RMAKER_LOCAL_CTRL_AUTO_ENABLE. However,
CONFIG_ESP_RMAKER_LOCAL_CTRL_ENABLE will also continue to work and
ensure backward compatibility
2023-09-08 23:46:21 +05:30
sanket.wadekar
d789c719e6 wifi_prov: Add mfg data for improved device discovery
For BLE provisioning, adding some metadata in BLE advertisement can help
apps in filtering the scanned device list better, instead of relying
just on the prefix. It can also help show the device type even before
provisioning.

Metadata has been added in led_light and switch examples only, but can be
added in any other project too, as per the apps' requirement.
2023-08-18 18:22:06 +05:30
sanket.wadekar
e627cc6beb Added matter_light and matter_switch example 2023-08-08 14:08:29 +05:30
sanket.wadekar
58e936f79f examples: Include nvs keys partition to enable using nvs encryption
Also updates the rmaker_common submodule to include support for encrypted fctry nvs partition.
2023-07-14 14:37:24 +05:30
Piyush Shah
d347bb62e6 led_light: Add a sample usage for cmd-response 2023-06-13 19:57:59 +05:30
sanket.wadekar
d7dc0c56c9 task: create event loop in app_insights 2023-05-29 15:21:34 +05:30
Piyush Shah
767643f6d3 homekit_switch: Fixes for idf v5.x
Also updated the cli and rmaker_common submodules
2023-05-19 17:39:21 +05:30
Dhaval Gujar
741b2c64a1 Adds support for using esp_secure_cert_mgr for TLS credentials
- Updated partitions.csv in all examples to use final
 esp_secure_cert partition format.
- This option can only be enabled if claiming is disabled.
- The Rainmaker app will fall back to using NVS if it
 fails to fetch from the `esp_secure_cert` partition.
 This has been done to allow a common firmware to be built that
 can run on both kinds of devices, i.e. ones that use NVS
 and ones that use the `esp_secure_cert` partition.
2023-03-30 22:23:17 +05:30
Vikram
7da0ec23db Bugfix: MQTT budget exceed causing WDT trigger in ESP-Insights
Cause: A vicious cycle:
MQTT budget exceed error print getting logged into ESP-Insights.
When the RTC memory is full, this causes it to drop the message and
raise memory full event, which then taken action as reporting Insights
data immediately. This again causes MQTT budget exceed error!

The fix: Do not try to send message when budget is not available

Signed-off-by: Vikram <vikram.dattu@espressif.com>
2023-02-01 12:43:41 +05:30
Vikram
3dc25a47c5 Revert "examples: Disable mbedTLS server config to reduce firmware size"
This reverts commit 7c1e894fe0.

The commit needs to be reverted as IDF5.0 does not allow selecting
ESP_HTTPS_SERVER when MBEDTLS is in client only mode.
2023-01-17 17:31:50 +05:30
sanket.wadekar
2f2c383e5e mqtt_topics: Added support for AWS basic ingest topics.
Signed-off-by: sanket.wadekar <sanket.wadekar@espressif.com>
2022-11-21 18:59:47 +05:30
Piyush Shah
de07b6c76b Merge branch 'task/ota_event_handlers' into 'master'
Added OTA event handlers in examples

See merge request app-frameworks/esp-rainmaker!328
2022-11-21 21:21:35 +08:00
sanket.wadekar
cf3b8d851a Added MQTT disconnect and user node mapping reset calls on WiFi/Factory Reset.
Signed-off-by: sanket.wadekar <sanket.wadekar@espressif.com>
2022-11-15 10:43:09 +05:30
sanket.wadekar
4acad87be9 Added OTA event handlers in examples 2022-11-09 20:35:27 +05:30
yuanjianmin
7c1e894fe0 examples: Disable mbedTLS server config to reduce firmware size 2022-11-08 19:00:54 +08:00
Piyush Shah
de9521febb Merge branch 'bugfix/insights_not_working' into 'master'
Update esp-insights submodule

See merge request app-frameworks/esp-rainmaker!326
2022-10-03 17:02:28 +08:00