Commit Graph

207 Commits

Author SHA1 Message Date
Piyush Shah
0c84527cfb esp_insights: Add facility to enable esp_insights in the examples
Please check out CHANGES.md as this commit may break your existing
projects' compilation.
2021-07-06 00:39:07 +05:30
Piyush Shah
948ed9db49 Merge branch 'feature/def_tz_service' into 'master'
examples: Add timezone service in some examples

See merge request app-frameworks/esp-rainmaker!244
2021-06-08 08:48:11 +00:00
Piyush Shah
ae067c238c Merge branch 'feature/upload_components_to_web_service' into 'master'
Upload components to the service

See merge request app-frameworks/esp-rainmaker!235
2021-06-07 17:29:59 +00:00
Sergei Silnov
ef81d4370c Upload components to the service 2021-06-07 14:27:30 +02:00
Piyush Shah
0b819949cf examples: Add timezone service in some examples
Setting correct timezone is mandatory for scheduling to work correctly.
Earlier, the default timezone was set to "Asia/Shanghai" and a config
change was required for setting appropriate timezone.

However, now that the phone apps have support for setting the timezone
using the RainMaker timezone service, it has been enabled in all
examples that had scheduling enabled.
2021-06-07 11:16:45 +05:30
Piyush Shah
04eb2f2bac Merge branch 'feature/subtype' into 'master'
RainMaker core: Add a new field "subtype" for devices and add an API to get param value

See merge request app-frameworks/esp-rainmaker!238
2021-06-02 07:26:09 +00:00
Piyush Shah
8f73dda4fb esp_rmaker_core: Add an API to get parameter value from Rmaker core 2021-06-01 20:09:37 +05:30
Piyush Shah
f8b833ac2f esp_rmaker_core: Add a new field "subtype" for devices 2021-06-01 20:08:28 +05:30
Piyush Shah
cefa857e49 Merge branch 'feature/larger_jsons' into 'master'
esp_rainmaker_core: Allow larger node config and param JSONs

See merge request app-frameworks/esp-rainmaker!239
2021-06-01 14:33:48 +00:00
Piyush Shah
522452a0e5 homekit_switch: Minor change to fix compilation error due to JSON component change 2021-06-01 14:45:32 +05:30
Piyush Shah
c68b4ed535 esp_rainmaker_core: Allow larger node config and param JSONs
The node config and node params JSON were limited by the size specified
in config options, since the JSON generator required pre-allocated buffer.

Now that the JSON generator gives a facility of finding out the total length
required to create the JSON, this config based limitation could be removed.

ESP_RMAKER_MAX_NODE_CONFIG_SIZE has been removed and instead, the required
node config size is dynamically computed and allocated.

ESP_RMAKER_MAX_PARAM_DATA_SIZE has still been retained and used as the
default size of params JSON, since params sizes keep on changing and it is
best to not keep re-allocating buffers. However, if the required size
exceeds the current max size, the node params buffer is re-allocated.

Similar logic has also been used in schedules JSON and the default max
scheduled count has been increased from 5 to 10, since higher number of
schedules can no more cause buffer overflow issues.
2021-06-01 14:45:32 +05:30
Piyush Shah
1a3ad3d377 Merge branch 'feature/system_service' into 'master'
esp_rmaker_core: Add a system service for reboot/reset

See merge request app-frameworks/esp-rainmaker!236
2021-05-30 10:45:00 +00:00
Piyush Shah
b4bbaac77b gitlab-ci: Temporary fix to pass the CI pipeline 2021-05-28 23:22:00 +05:30
Piyush Shah
fce91c4fb0 esp_rmaker_core: Add a system service for reboot/reset 2021-05-28 23:21:58 +05:30
Piyush Shah
ec23bd8aa6 Merge branch 'task/node_sharing_cli' into 'master'
submodules: Updated the RainMaker Common and CLI submodules

See merge request app-frameworks/esp-rainmaker!234
2021-04-08 12:43:56 +00:00
Piyush Shah
7a4146c4df submodules: Updated the RainMaker Common and CLI submodules
Common: Additional metadata for tracking RainMaker platform connections in AWS.
CLI: Modified workflow for Node Sharing.
2021-04-08 17:11:10 +05:30
Piyush Shah
0fba68bbf7 Merge branch 'bugfix/report_params' into 'master'
Bugfix in reporting params

See merge request app-frameworks/esp-rainmaker!233
2021-03-23 06:43:30 +00:00
Piyush Shah
31397c93eb esp_rmaker_params: Do not attempt reporting params if RainMaker hasn't yet started
The "started" in this context means that the MQTT connection was successful
and normal RainMaker operations have begun.
2021-03-23 01:25:12 +05:30
Piyush Shah
332c6e7d58 examples: Increase FreeRTOS timer stack size
Button event callbacks are executed in the context of FreeRTOS Timer task.
Reporting param updates from that causes stack overflow, specifically on ESP32-C3.
As a temporary workaround, the stack size for FreeRTOS Timer task has been increased.
2021-03-23 01:25:02 +05:30
Piyush Shah
8854443e4e examples: Use FreeRTOS timer instead of esp_timer for periodic tasks
esp_timer is generally recommended when high precision is required.
However, since that is not the case for periodic reporting of temperature
values, replaced it with freeRTOS Timer.
2021-03-23 01:24:39 +05:30
Piyush Shah
009c6d7ab3 Remove a stale file added mistakenly 2021-03-23 01:02:03 +05:30
Piyush Shah
37b6a24dfa Merge branch 'bugfix/workqueue_task_delete' into 'master'
Don't delete work queue task when local_ctrl fails to start

See merge request app-frameworks/esp-rainmaker!232
2021-03-18 07:17:47 +00:00
Bruno Binet
80e565aac2 Don't delete work queue task when local_ctrl fails to start
this vTaskDelete statement was probably missed when the work queue has
been restructured and extracted in a separate component.
See commit: 31d4b375e3
2021-03-17 17:45:12 +01:00
Piyush Shah
8cb1abcdfe Merge branch 'bugfix/esp_event_warnings' into 'master'
esp_events: Corrected the event handler prototypes to be in sync with esp_event_handler_t

See merge request app-frameworks/esp-rainmaker!231
2021-03-15 06:55:08 +00:00
Piyush Shah
66dc818ba8 esp_events: Corrected the event handler prototypes to be in sync with esp_event_handler_t
Closes https://github.com/espressif/esp-rainmaker/issues/55
2021-03-15 11:03:32 +05:30
Piyush Shah
38a46da760 Merge branch 'bugfix/schedule_memory_leak' into 'master'
esp_rmaker_schedule: Fix memory leak when parsing the schedule JSON.

See merge request app-frameworks/esp-rainmaker!220
2021-03-02 05:56:43 +00:00
Piyush Shah
8fd2e02ee4 Merge branch 'feature/esp32c3_support' into 'master'
esp32c3: Minor changes to support this new chip

See merge request app-frameworks/esp-rainmaker!216
2021-02-10 16:21:04 +08:00
Piyush Shah
86b4dbbd68 examples: Changes for the ESP32-C3, primarily for Boot button
And some other minor changes
- Corrected comments in example READMEs and sdkconfig.defaults
- Duplicate macro in homekit_switch removed
2021-02-09 22:32:03 +05:30
Piyush Shah
50c3023e43 esp32-c3: Minor changes for ESP32-C3 support 2021-02-08 23:27:57 +05:30
Piyush Shah
2271c51144 Merge branch 'task/module_restructure' into 'master'
esp_rmaker: Moved out some generic modules from esp_rainmaker component

See merge request app-frameworks/esp-rainmaker!222
2021-02-04 00:51:19 +08:00
Piyush Shah
729e4d8310 Merge branch 'bugfix/crash_in_app_wifi' into 'master'
app_wifi: Initialized the nvs_random to NULL

See merge request app-frameworks/esp-rainmaker!226
2021-02-03 20:12:30 +08:00
Piyush Shah
31d4b375e3 esp_rmaker: Moved out some generic modules from esp_rainmaker component
The following are now part of a separate repo (and included as git submodule):
- MQTT glue layer
- Work Queue
- Utilities (reset, reboot, time sync, timezone, etc.)
- Factory Storage

Even CLI is now a part of a seperate repo, included here as a git submodule.
2021-02-03 15:30:55 +05:30
Shubham Patil
460eb620e0 app_wifi: Initialized the nvs_random to NULL. 2021-02-01 20:53:25 +05:30
Piyush Shah
3c4a1bce0b Merge branch 'feature/demo_intro_prints' into 'master'
app_wifi: Added some optional prints on console to help getting started

See merge request app-frameworks/esp-rainmaker!225
2021-01-28 21:49:42 +08:00
Piyush Shah
63b7471a88 app_wifi: Added some optional prints on console to help getting started
CONFIG_APP_WIFI_SHOW_DEMO_INTRO_TEXT needs to be set to enable these prints
2021-01-28 16:03:46 +05:30
Piyush Shah
bf855ca378 Merge branch 'feature/hue-slider' into 'master'
esp_rmaker_standard_types: Added UI Type "esp.ui.hue-slider" for Hue param

See merge request app-frameworks/esp-rainmaker!224
2021-01-26 04:02:32 +08:00
Piyush Shah
3a0f522995 esp_rmaker_standard_types: Added UI Type "esp.ui.hue-slider" for Hue param
This will show up as a coloured hue slider in the phone apps
2021-01-26 00:26:05 +05:30
Chirag Atal
6624e8664d esp_rmaker_schedule: Fix memory leak when parsing the schedule JSON. 2021-01-15 17:58:03 +05:30
Piyush Shah
012aadf8f4 Merge branch 'bugfix/random_bytes_logic' into 'master'
wifi_prov: Fixed a bug which was causing name/pop to change on every reboot

See merge request app-frameworks/esp-rainmaker!218
2021-01-08 18:00:20 +08:00
Piyush Shah
0ad17a96e8 wifi_prov: Fixed a bug which was causing name/pop to change on every reboot
The provisioning name (SSID/BLE device name) and PoP are generated from
the general purpose random bytes stored in the factory NVS partition.
If a node hasn't completed claiming, these random bytes was getting re-generated
on a reboot, thereby causing the name and pop to change, which is undesirable.

With this fix, the random bytes will be generated only if not done already.

Note that an erase_flash will erase these bytes as well and so,
the provisioning name and PoP will still change in that case.
2021-01-07 23:19:49 +05:30
Piyush Shah
3a0621dccf Merge branch 'bugfix/local_ctrl_crash' into 'master'
esp_rmaker_local_ctrl: Wait for Wi-Fi provisioning to finish before starting local control

See merge request app-frameworks/esp-rainmaker!205
2020-12-05 00:29:46 +08:00
Piyush Shah
1698e39207 Merge branch 'bugfix/ota_incomplete' into 'master'
ota: Fixed an issue in error reporting in case of invalid OTA image

See merge request app-frameworks/esp-rainmaker!185
2020-12-04 20:28:54 +08:00
Piyush Shah
592addd0e8 esp_rmaker_local_ctrl: Wait for Wi-Fi provisioning to finish before starting local control
Since only a single protocomm_httpd instance is allowed at a time, starting local
control before soft AP provisioning ends causes errors. So now, we wait for
provisioning to finish before starting local control.
2020-12-04 14:20:47 +05:30
Piyush Shah
65e31b7666 ota: Fixed an issue in error reporting in case of invalid OTA image 2020-12-03 22:51:58 +05:30
Piyush Shah
5d829c0de8 Merge branch 'task/def_disable_local_ctrl' into 'master'
esp_rmaker_local_ctrl: Keep the feature disabled by default

See merge request app-frameworks/esp-rainmaker!202
2020-11-27 01:46:11 +08:00
Piyush Shah
489a532c32 esp_rmaker_local_ctrl: Keep the feature disabled by default 2020-11-26 22:05:46 +05:30
Piyush Shah
88b10ebaf3 Merge branch 'feature/local_control' into 'master'
ESP RainMaker Local Control

See merge request app-frameworks/esp-rainmaker!126
2020-11-26 21:29:50 +08:00
Piyush Shah
32b7d65d9b esp_rmaker_core: Provide an API to get request source in string format
Used this API in all examples.
2020-11-18 22:16:05 +05:30
Piyush Shah
892e61b32f esp_rmaker_core: Add a facility for local control
Once the node connects to a Wi-Fi network, it would now be possible to
control it from a client in the same network. This will be useful when
the Internet connection is down. It will also reduce the cloud communication
in general and will be faster.
2020-11-18 22:16:04 +05:30
Piyush Shah
bca07db139 Merge branch 'task/misc_minor_fixes' into 'master'
Miscellaneous minor fixes

See merge request app-frameworks/esp-rainmaker!199
2020-11-12 21:32:37 +08:00