Commit Graph

266 Commits

Author SHA1 Message Date
Piyush Shah
1d3b86e232 esp32c5: Add ESP32-C5 support to RainMaker core component
- Add ESP32-C5 secure boot header include in esp_rmaker_secure_boot_digest.h
- Bump component version from 1.5.5 to 1.5.6 for ESP32-C5 support
2025-06-06 17:50:32 +05:30
Piyush Shah
6c839a9251 Merge branch 'task/simple_ts_ttl' into 'master'
simple timeseries: Add an option to include ttl field (in days) while reporting values

See merge request app-frameworks/esp-rainmaker!540
2025-05-30 13:28:56 +05:30
Piyush Shah
2dcc01c665 esp_rainmaker: Bump up the component version for new simple TS TTL feature 2025-05-22 20:41:31 +05:30
Piyush Shah
08c419da85 simple timeseries: Add a new helper API to directly report time series data
This allows users to avoid the double reporting that happens when using
esp_rmaker_param_update_and_report(), once for regular param update and
once for time series update. This can help reduce cost, especially when
the apps are using values only from the simple time series API.
2025-05-22 20:41:25 +05:30
Piyush Shah
d319d1d7c7 simple timeseries: Add an option to include ttl field (in days) while reporting values
This will ensure that the size of simple time series data in backend
does not keep growing and gets deleted after the configured time.

Typically, 30-60 days would be enough for most use cases.
2025-05-21 16:58:34 +05:30
WanqQixiang
72b54cf485 esp-rmaker: fix the host name check for Thread local control 2025-05-12 18:01:33 +08:00
WanqQixiang
3c019227b4 esp_rmaker: Add local control for Thread devices 2025-04-10 10:34:08 +08:00
Vikram Dattu
699df878b1 Extend signature generation to work on RSA signature
- Added signature generation for RSA signature in addition to ECDSA
 - Bugfix: use inlen, instead of doing strlen on input data
 - Bugfix: outlen should be `2 * slen` and not `slen` as we convert this to HEX
 - Also added a sign-data console command

 - component manager: Updated patch version for rainmaker component
2025-03-26 15:56:19 +05:30
Piyush Shah
327f35437e esp_rainmaker_components: Remove all external dependencies from codebase
Removed
- esp-insights
- jsmn
- json_generator
- json_parser

Instead, pick them up from idf component manager
2025-03-25 17:11:07 +05:30
Piyush Shah
6ed65d92fc Merge branch 'bugfix/fix_string_param_memory_leak' into 'master'
fix(esp_rainmaker): Fix memory leak when set string parameter

See merge request app-frameworks/esp-rainmaker!522
2025-03-04 16:04:34 +08:00
jim
cfaf803fac fix(esp_rainmaker): Fix memory leak when set string parameter 2025-02-28 19:52:28 +08:00
Gautam Agrawal
88d359014e Update esp_insights submodule to 1.2.4
* Update app_insights components dependency version to 1.2.4
2025-02-28 11:30:55 +05:30
Bijan Treister
6350543270 Fix Invalid Pointer Usage in esp_rmaker_report_info
Pull Request Summary: Fix Invalid Pointer Usage in esp_rmaker_report_info
Issue

Compilation failed due to incorrect pointer usage in snprintf and json_gen_obj_set_* calls. The function incorrectly passed &key_name (a char (*)[3] type) instead of key_name (a char *), causing type mismatch errors.
Fix

    Corrected snprintf usage: Passed key_name instead of &key_name.
    Fixed json_gen_obj_set_* calls: Removed unnecessary address-of operator (&key_name).
    Ensured correct string formatting: snprintf now correctly assigns key_name values without an explicit null termination.

Impact

    Resolves compilation errors for ESP32-C3 builds.
    Maintains intended functionality with proper string handling.
    No functional changes, just type correctness fixes.

This fix ensures successful builds and prevents runtime issues due to incorrect pointer usage
2025-02-10 20:54:39 -05:00
Piyush Shah
a43bb53741 Merge branch 'bugfix/fix_roll_back_flag_not_clear' into 'master'
bugfix: Fix when OTA successfully and rollback flag not clear

See merge request app-frameworks/esp-rainmaker!492
2025-01-31 20:45:57 +08:00
jim
0af4040bbb bugfix: Fix memory leak when create device and parameter and then delete them 2025-01-03 11:55:56 +08:00
Piyush Shah
4ee7cc20e8 bugfix: Application registered callback was getting skipped for persistent params
If the new bulk write callback is registered for a device/service instead of regular
callback, it was getting skipped for persistent params during initialisation.
2024-12-24 13:53:59 +05:30
jim
e11bb3076d bugfix: Fix when OTA successfully and rollback flag not clear 2024-11-27 11:21:43 +08:00
Piyush Shah
6c2859008c Merge branch 'tbr/fix_duplicate_initial' into 'master'
thread_br: avoid duplicate initialization for border router and increase mqtt task stack size

Closes RMN-2001 and RMN-2047

See merge request app-frameworks/esp-rainmaker!479
2024-11-05 20:18:59 +08:00
Piyush Shah
e05a72d3dd bugfix: Command-Response topic subscription was happening multiple times 2024-10-28 18:42:11 +05:30
Piyush Shah
630fe690b0 Minor typo fixes 2024-10-25 17:31:21 +05:30
WangQixiang
592c25f0e3 thread_br: avoid duplicate initialization for border router
Closes RMN-2001 RMN-2047
2024-10-17 11:18:51 +08:00
Piyush Shah
3328c7295f Merge branch 'thread-br' into 'master'
feature: Add Thread Border Router service and Thread BR example

See merge request app-frameworks/esp-rainmaker!450
2024-09-10 19:23:14 +08:00
Piyush Shah
1f31d6c816 Merge branch 'rmaker/provisioning_option' into 'master'
rmaker: Add a configuration option to make the provisioning component selectable

See merge request app-frameworks/esp-rainmaker!460
2024-09-10 19:22:38 +08:00
WanqQixiang
189f99bb1c feature: Add Thread Border Router service and Thread BR example 2024-09-10 17:45:03 +08:00
Piyush Shah
7151323109 Merge branch 'fix/matter_ci_build' into 'master'
gitlab_ci: Fix matter build by fixing the docker image to stable release

See merge request app-frameworks/esp-rainmaker!471
2024-09-10 17:18:36 +08:00
WanqQixiang
0470847455 rmaker: Add a configuration option to make the provisioning component selectable 2024-09-10 15:47:43 +08:00
Piyush Shah
19c78e018f Merge branch 'bugfix/stringop_truncation_warnings' into 'master'
Avoid GCC -O2 warning stringop-truncation

See merge request app-frameworks/esp-rainmaker!474
2024-09-09 19:38:23 +08:00
Vikram Dattu
62e361f043 Bump up esp_rainmker component version and update cli submodule 2024-09-09 11:50:48 +05:30
Piyush Shah
d0f22ea9d3 esp_rmaker_claim: Fetch MQTT Host from assisted claiming service
For assisted claiming, the node itself does not connect to the
claiming service directly. Instead, it just creates and parses payloads which
are sent/received by phone apps on its behalf. Since the phone app
can get certificates from any claiming service, it will be better
to have the MQTT Host URL also part of the response, so that there
is no mismatch between certificate and MQTT Host URL.
2024-09-04 16:56:57 +05:30
Piyush Shah
631292c230 time_series_data: Add param type to the time series/simple time series payloads
This is useful for listeners (like webhooks) who may want to perform
additional operations based on the param type.
2024-08-29 22:06:02 +05:30
Vikram Dattu
3e375f43f6 Enable Insights command response module
- Updated esp_insights submodule and the component version dependency
 - Selected `ESP_INSIGHTS_TRANSPORT_MQTT` in examples sdkconfig.defaults
 - Called esp_insights_cmd_resp_enable

 - Also updated `cli` submodule to the latest
2024-08-22 10:32:54 +05:30
Mahavir Jain
082f5e3eb5 Merge branch 'refactor/app_descriptor_dependency' into 'master'
refactor: cleaner dependency of app descriptor

See merge request app-frameworks/esp-rainmaker!463
2024-08-21 17:30:58 +08:00
Jakob Hasse
5f501ec1c2 refactor: cleaner dependency of app descriptor 2024-08-21 10:12:51 +02:00
Jakob Hasse
b5de4b1468 added esp_bit_defs.h to esp_rmaker_core.c 2024-08-21 10:11:59 +02:00
WanqQixiang
be169c6894 esp-rainmaker: Replace wifi_provisioning with network_provisioning for ESP-IDF v5.1+ 2024-08-01 11:34:49 +08:00
WanqQixiang
393a9ef089 feat(rmaker): Add Thread support for esp-rainmaker component 2024-07-11 12:22:37 +08:00
Piyush Shah
a3bdac0717 Merge branch 'task/bulk_write' into 'master'
esp_rmaker_param: Handle multiple params simultaneously in a single callback

See merge request app-frameworks/esp-rainmaker!356
2024-06-21 14:30:25 +08:00
Piyush Shah
8140819c03 esp_rmaker_param: Handle multiple params simultaneously in a single callback
A callback of type esp_rmaker_device_bulk_write_cb_t can be registered
using esp_rmaker_device_add_bulk_cb() to handle multiple param writes in
a single callback. This is especially useful for devices like lightbulb,
wherein a scene/schedule may have a combination of brightness, hue, saturation,
all of which should change together.

Additionally to optimise parameter reporting, internal logic has been changed such
that if the callbacks use esp_rmaker_param_update() instead of
esp_rmaker_param_update_and_report(), all updated parameters for a
device or service will get reported together instead of one parameter in
one message.
2024-06-20 14:26:06 +08:00
Piyush Shah
8da28b00e1 Merge branch 'refactor/portable_pointers' into 'master'
refactor: made pointers in rainmaker schedule more portable

See merge request app-frameworks/esp-rainmaker!444
2024-06-19 10:36:42 +08:00
Piyush Shah
e1fcc7c862 Merge branch 'refactor/size_t_formatter' into 'master'
refactor: better formatters for logging in core

See merge request app-frameworks/esp-rainmaker!443
2024-06-19 10:36:03 +08:00
xiaqilin
e80f887312 esp-rainmaker: add zigbee gateway device type and get device private data API 2024-06-04 10:19:21 +08:00
Jakob Hasse
a01d6c0969 refactor: made pointers in rainmaker schedule more portable 2024-05-31 17:05:20 +02:00
Jakob Hasse
e05ea20b65 refactor: better formatters for logging in core 2024-05-31 16:58:03 +02:00
Vikram Dattu
145d799633 Bump up esp_schedule's version for component manager
- Also update the corresponding dependency in esp_rainmaker component
2024-05-13 14:45:04 +05:30
Vikram Dattu
5772ee461f Fix some warnings in API docs 2024-05-10 21:16:34 +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
Vikram Dattu
d3024a1259 Bump up esp_schedule patch version in idf_component.yml 2024-03-13 15:52:10 +05:30
Nuno Gonçalves
c38bd96aaf avoid GCC -O2 warning stringop-truncation
Signed-off-by: Nuno Gonçalves <nunojpg@gmail.com>
2024-03-02 10:44:53 +00:00
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
Piyush Shah
c265085b36 esp_rmaker_param: Add support for Simple Time Series Data
This is a simpler variant of time series data, which allows fetching
only raw values and not any aggregates like average, min, max, etc.
This option is cost efficient and is recommended if the application
requires only raw values.

Use PROP_FLAG_SIMPLE_TIME_SERIES instead of PROP_FLAG_TIME_SERIES in the
parameter properties flags to enable this.
2024-01-02 19:07:25 +05:30