238 Commits

Author SHA1 Message Date
Piyush Shah
bfa60ea158 rmaker_app_network: Expose the API to read the configured PoP 2026-01-08 19:06:26 +05:30
Piyush Shah
a60204bb16 led_light: Enable groups handling support for a PoC
Also includes logic for dummy direct MQTT publish
2025-12-22 17:00:42 +05:30
Piyush Shah
23123e3a2d esp32c5: Added default config for binary size optimisation
And also make esp32c5 part of standard esp-idf release/v5.5 CI builds
2025-12-19 23:52:32 +05:30
Piyush Shah
9474b2e08c rmaker_app_network: Better handling of provisioning failures
Remove the retry logic for Wi-Fi disconnected events while in
provisioning mode because it is handled internally by the
network_provisioning component. Now, depending on the Kconfig options,
the firmeare will try Wi-Fi connection one or more time and then stop.
Phone apps can reset the state and retry provisioning on the same
session.

Also, reduced the default connection retry count from 5 to 3 so that
users would have to wait for lesser time for retrying
2025-12-16 16:29:31 +05:30
Piyush Shah
1b1c9d770f Merge branch 'task/app_network_async_connection' into 'master'
rmaker_app_network: Support asynchronous network connection and add MFG device type and subtype for AI Agent

See merge request app-frameworks/esp-rainmaker!604
2025-12-15 22:52:36 +05:30
Shreyash Bubane
963729bda7 rmaker_app_network: update component version 2025-12-11 12:16:11 +05:30
Shreyash Bubane
51b310458d rmaker_app_network: add MFG data for AI Agent 2025-12-11 12:16:11 +05:30
Shreyash Bubane
d02b2f4d0f rmaker_app_network: added menuconfig to control app_network_start() return behaviour 2025-12-11 12:16:11 +05:30
Vikram Dattu
ce0a826f0e Use rmaker_work_q to fetch credentials to avoid SPIRAM issues
- Tasks running SPIRAM when do flash access crash with cache issues
 - WebRTC task which calls fetch credential is in SPIRAM
 - Made fetch credential API safe by moving the execution to internal rmaker_work_q
2025-12-10 19:50:39 +05:30
Vikram Dattu
21a7351e6c Added KVS WebRTC camera example
- Example uses `esp_rmaker_get_aws_security_token` internally to get the token
 - The credential callback is registered with webrtc SDK which it can call
 - webrtc SDK uses NVS to cache the signaling info internally
2025-12-10 19:50:39 +05:30
Piyush Shah
85937bae83 led_light: Include a readme pointer that the apps can fetch and render from 2025-12-08 12:43:49 +05:30
Wang Qixiang
209087c7a5 esp_rainmaker: decouple esp_rcp_update from esp_rainmaker 2025-12-08 01:56:43 +05:30
Piyush Shah
da577d7cb4 homekit_switch: rmaker_app_network was getting used instead of custom app_network
HomeKit has its own logic for network provisioning, including support
for Apple WAC and so, uses its own app_network component.
Recent restructuring pulled in the common rmaker_app_network component
instead.
2025-11-14 19:34:37 +05:30
Piyush Shah
da838cbf13 rmaker_common: Remove the submodule and its references 2025-11-13 09:42:38 +05:30
Piyush Shah
8a816fc6c3 examples: Update the names for the common example components 2025-11-13 09:42:38 +05:30
Piyush Shah
d91538695d examples/common: Prepare common example components for component registry 2025-11-13 00:03:13 +05:30
Piyush Shah
2de5cd5a56 examples: Enable parameter console commands in some examples 2025-11-12 20:50:06 +05:30
Piyush Shah
df092ad76b Merge branch 'task/led-light' into 'master'
examples: Remove dependency on ws2812 and ledc components

See merge request app-frameworks/esp-rainmaker!587
2025-11-12 20:26:44 +05:30
Piyush Shah
7dedfad9f7 app_network: Use new wifi retry count field for better resilience in poor network conditions
If network connection fails even once, the firmware reports so to
clients (like phone apps) and the clients declare failure and abort
immediately, even if the firmware eventually connects. With this
change, a failure will be reported only after a few retries (whise
number is configurable)
2025-11-12 17:01:19 +05:30
Piyush Shah
a640b220de examples: Remove dependency on ws2812 and ledc components
- Use led_indicator component from component manager for ws2812 and RGB
  LEDs
- Add other components from examples/common via idf_component.yml
  instead of adding as EXTRA_COMPONENT_DIRS in CMakeLists.txt
2025-11-11 19:56:43 +05:30
Piyush Shah
354f22eb5b Merge branch 'task/app-reset' into 'master'
app_reset: Remove dependency on local gpio_button component

See merge request app-frameworks/esp-rainmaker!586
2025-10-28 02:02:22 +05:30
Piyush Shah
1dc2fc3130 examples: Use modified app_reset APIs and upstream button component 2025-10-27 18:00:42 +05:30
Piyush Shah
2a879fb485 app_reset: Remove dependency on local gpio_button component
Use the upstream espressif/button component instead.
Made other changes to make the component independent enough to
be uploaded on component registry.
2025-10-27 18:00:29 +05:30
Hrishikesh Dhayagude
57ddb532c0 Merge branch 'fix/example/matter-light-switch' into 'master'
refactor(matter_switch): update endpoint name to on_off_light_switch

See merge request app-frameworks/esp-rainmaker!584
2025-10-21 14:36:19 +08:00
Vikram Dattu
712a277d05 Renamed wifi_start and wifi_init APIs defined in app_wifi_internal
- The API names are too common/generic
 - Conflict with hosted APIs and hence needs to be renamed
2025-10-17 15:49:02 +05:30
mahesh
2ab59d7858 example/matter: Update the device type name in the light_switch example as per the esp-matter updates
ci: update matter build image to include updated namespaces change
2025-10-17 15:33:29 +05:30
Shubham Patil
0686cddb16 examples/matter: add the include directory to fix build
data-model-provider changes moved few macros around,
so builds are failing on main branch.
Add the include directory into cmake file and include the required
header file at required source files.
2025-09-15 14:18:30 +05:30
Piyush Shah
ebe3742c0a Merge branch 'support/led_light_pop_config' into 'master'
example(led_light): Add support for setting POP_TYPE from config

See merge request app-frameworks/esp-rainmaker!574
2025-09-12 17:06:44 +05:30
Vikram Dattu
151b2603fc example(led_light): Add support for setting POP_TYPE from config
- Three options to chose from 0 (POP_TYPE_MAC), 1 (POP_TYPE_RANDOM) and 2 (POP_TYPE_NONE)
 - CUSTOM_POP option is not provided, because it needs additional API call to set custom pop value
2025-09-10 11:35:12 +05:30
Piyush Shah
1dec6f0d3a homekit_switch: Use network_provisioning component instead of wifi_provisioning 2025-08-31 18:01:47 +05:30
Piyush Shah
15922cf7c0 examples: Remove legacy code for esp-idf versions < 5.1 2025-08-29 20:02:57 +05:30
Piyush Shah
5536af3487 app_network: Remove CONFIG_ESP_RMAKER_USING_NETWORK_PROV
Made network prov as default since it is supported for esp-idf v5.1
onwards and esp-idf v5.0 has reached end of life.

This will make the code more readable
2025-08-29 20:02:41 +05:30
Piyush Shah
efcb15b137 cleanup: Remove Makefile related files as it is not supported any more
ESP IDF has moved to CMake since long back and these files were anyways
unused
2025-08-29 19:52:06 +05:30
Piyush Shah
1908682637 Merge branch 'example/add_system_service' into 'master'
example(led_light): Add system service to support factory reset

See merge request app-frameworks/esp-rainmaker!560
2025-07-30 12:14:22 +05:30
esp
98a76a1ecb example(led_light): Add system service to support factory reset 2025-07-30 10:12:17 +08:00
Shubham Patil
9899f6b4e6 examples/matter/matter_light: set default values using set_val api
Variable names differ between main and release/v1.4 branches for setting
the member attributes in feature struct, so use the attribute::set_val()
api as a workaround for compatibility.

esp-matter!1002 added the feature config and we updated the rainmaker
examples, but then there were more changes went in which broke the
APIs/structs and was fixed in esp-matter!1146 which again broke the
rainmaker examples.

This fixes the current esp-matter:main and esp-rainmaker:master builds
for rainmaker+matter examples.
2025-07-22 12:52:47 +05:30
shripad621git
a84ba1aa17 examples/matter: Updated the README for matter examples 2025-06-30 11:01:09 +05:30
Piyush Shah
a96ae30aaa Merge branch 'client-only-matter-controller' into 'master'
Add client-only matter controller example

See merge request app-frameworks/esp-rainmaker!425
2025-06-24 10:19:25 +05:30
Piyush Shah
d465264179 Merge branch 'fix-matter-nvs-sz' into 'master'
examples/matter: increase the nvs size to recommended 48KB

See merge request app-frameworks/esp-rainmaker!537
2025-06-23 19:00:36 +05:30
WanqQixiang
6a79869068 examples: Add client-only matter controller example 2025-06-23 17:22:40 +08:00
Hrishikesh Dhayagude
21f5f47686 Merge branch 'feature/add_matter_plus_rainmaker_light_example' into 'master'
Add matter plus rainmaker light example non fabric and dynamic passcode function

See merge request app-frameworks/esp-rainmaker!526
2025-06-20 13:13:51 +08:00
Sayon Deep
585c834c11 examples/matter: fixed passing address of local variable 2025-06-18 12:26:20 +05:30
Sayon Deep
a443f7ff66 examples/matter: Updated README.md with node config and getparams example.
(cherry picked from commit e5bc3c72dfea92a1c64c68a71ac5aa6be12c56bf)
2025-06-18 12:26:20 +05:30
Sayon Deep
acea4e23cf changed device type value to have 0x for hex 2025-06-18 12:26:20 +05:30
Sayon Deep
5153a9ced5 restructred metadata to add event_list and client clusters 2025-06-18 12:26:20 +05:30
Sayon Deep
626cb34ab7 restructred metadata for new format 2025-06-18 12:26:20 +05:30
Sayon Deep
64320ce950 matter controller can now report the params as per data type of the attribute 2025-06-18 12:26:20 +05:30
Piyush Shah
45d2001a28 Merge branch 'task/c5support' into 'master'
esp32c5: Add ESP32-C5 support to RainMaker

See merge request app-frameworks/esp-rainmaker!544
2025-06-10 14:18:46 +05:30
Piyush Shah
f6e07b593e examples: Configure ESP32-C5 GPIO defaults for examples
- Set button GPIO to 28 for ESP32-C5 devkit (vs GPIO 9 for other C-series)
- Set WS2812 LED GPIO to 27 for ESP32-C5 devkit (vs GPIO 8 for other C-series)
- Updated examples: gpio, switch, multi_device, temperature_sensor, fan, led_light
2025-06-09 17:44:47 +05:30
jim
826b85d525 example: Remove the external platform and use secondary ble adv 2025-05-30 10:51:40 +08:00