Commit Graph

88 Commits

Author SHA1 Message Date
Piyush Shah
e24029fc90 esp_rmaker_core: Add support for Objects and Arrays in parameters
Validating the JSON arrays and objects would be the application's responsibility.
The RainMaker core will just treat them as strings (without the quotes, ofcourse).
2020-08-03 17:09:03 +05:30
Piyush Shah
b5cdfecdf7 json: Add facility to specifiy objects and arrays as strings
Eg. Add a pre-generated JSON object, say {"name":"val"} into another object, giving
a result {"pregen":{"name":"val"}}
Similarly allow to read entire object string during parsing.
2020-08-03 16:53:29 +05:30
Piyush Shah
c94d945958 Merge branch 'task/api_restructure' into 'master'
esp_rainmaker_core: Code restructure and API changes

See merge request app-frameworks/esp-rainmaker!136
2020-07-31 21:37:18 +08:00
Piyush Shah
a3a1d05531 esp_rainmaker_core: Code restructure and API changes
- APIs and data structures changed to a more object oriented approach.
- Some internal files split into multiple files to separate out functionality
  of node, device and parameter.
- A new doc file CHANGES.md added to help understand the changes.
- Modified all the examples as per these changes in the RainMaker APIs.
2020-07-31 16:16:21 +05:30
Piyush Shah
a0ed4fb536 Merge branch 'task/common_rainmaker_component' into 'master'
esp_rainmaker: Combine the various components into a single esp_rainmaker component

See merge request app-frameworks/esp-rainmaker!133
2020-07-23 01:59:49 +08:00
Piyush Shah
2bc2c7396f esp_rainmaker: Combine the various components into a single esp_rainmaker component
- Better exchange of data between different rainmaker components
- Single Kconfig file
- Easier to manage events and other common functionality
2020-07-22 19:16:04 +05:30
Piyush Shah
33a7446ba7 Merge branch 'feature/cpp_support' into 'master'
cpp support: Make header files compatible with CPP

See merge request app-frameworks/esp-rainmaker!131
2020-07-21 04:31:20 +08:00
Switi Mhaiske
b939945995 cpp support: Make header files compatible with CPP 2020-07-20 19:56:03 +05:30
Piyush Shah
dc64868533 Merge branch 'task/ci-changes' into 'master'
gitlab-ci: Get submodules during cloning step, instead of doing it later

See merge request app-frameworks/esp-rainmaker!134
2020-07-18 17:01:36 +08:00
Piyush Shah
28d52079e5 gitlab-ci: Get submodules during cloning step, instead of doing it later 2020-07-17 16:54:35 +05:30
Piyush Shah
44a7972b4a Merge branch 'bugfix/claim_compile' into 'master'
esp_claim: Fixed a compilation error introduced due to a previous commit

See merge request app-frameworks/esp-rainmaker!129
2020-07-14 03:41:39 +08:00
Piyush Shah
7d460768b7 esp_claim: Fixed a compilation error introduced due to a previous commit 2020-07-14 00:26:27 +05:30
Piyush Shah
27ec6dfef4 Merge branch 'bugfix/strncpy_usage' into 'master'
esp_rmaker_core: Fix usage of strncpy

See merge request app-frameworks/esp-rainmaker!128
2020-07-11 11:07:03 +08:00
Hrishikesh Dhayagude
c1831248ea esp_rmaker_core: Fix usage of strncpy 2020-07-10 21:47:34 +05:30
Piyush Shah
6692278a2f Merge branch 'bugfix/fix_typo_rmaker_doc' into 'master'
Docs: Minor fixes and additions

See merge request app-frameworks/esp-rainmaker!127
2020-07-08 18:07:47 +08:00
Shubham Patil
475984cd4f esp_rmaker_core: Fix typos in c api docs
Added
- Pointers to github repos of phone apps
2020-07-08 14:11:09 +05:30
Piyush Shah
8a89b3ad9d Merge branch 'feature/sntp_time_check' into 'master'
esp_rmaker_time_sync: Expose time_sync APIs.

See merge request app-frameworks/esp-rainmaker!118
2020-07-04 03:24:59 +08:00
Chirag Atal
4796f987b7 esp_rmaker_time_sync: Expose time_sync APIs. 2020-07-03 17:48:51 +05:30
Piyush Shah
5fb0e69932 Merge branch 'feature/rmaker_events' into 'master'
Add a framework for RainMaker Events

See merge request app-frameworks/esp-rainmaker!122
2020-07-03 11:02:30 +08:00
Piyush Shah
966a767755 switch: Add an event handler for RainMaker Events 2020-07-02 19:34:54 +05:30
Piyush Shah
15ccf7a7e9 esp_rmaker_core: Added support for some basic rainmaker events
Some RainMaker events could be useful for applications, either
to take some action, or trigger indicators. These are now
exposed using the ESP Events framework of ESP IDF.
2020-07-02 19:31:42 +05:30
Piyush Shah
64e4dc8b6e Merge branch 'feature/cli' into 'master'
esp_rmaker_console: Added support for device console

See merge request app-frameworks/esp-rainmaker!107
2020-06-26 18:40:11 +08:00
Chirag Atal
dc3b34ccdf esp_rmaker_console: Add support for serial console. 2020-06-25 17:40:34 +05:30
Piyush Shah
87ca7367e3 Merge branch 'bugfix/gpio_example' into 'master'
examples: Use the common app_wifi file even in the gpio example

See merge request app-frameworks/esp-rainmaker!121
2020-06-25 20:03:10 +08:00
Piyush Shah
febb4bc745 examples: Use the common app_wifi file even in the gpio example 2020-06-25 12:08:04 +05:30
Piyush Shah
b52a9311f1 Merge branch 'bugfix/cmake_retrigger_issues' into 'master'
esp_rmaker_core: Add logic to automatically trigger re-runs of CMake

See merge request app-frameworks/esp-rainmaker!120
2020-06-25 14:36:09 +08:00
Piyush Shah
6ecf3d9fad esp_rmaker_core: Add logic to automatically trigger re-runs of CMake
This is useful to avoid build failures when a new component or
config option is added in ESP RainMaker
2020-06-24 19:13:46 +05:30
Piyush Shah
78e56ba6aa Merge branch 'feature/ble_support' into 'master'
app_wifi: Add support for BLE based provisioning.

See merge request app-frameworks/esp-rainmaker!104
2020-06-22 23:35:13 +08:00
Chirag Atal
227a705430 app_wifi: Add support for BLE based provisioning. 2020-06-22 18:51:08 +05:30
Piyush Shah
32e77abf77 Merge branch 'bugfix/update_rmaker_publish_api' into 'master'
esp_rmaker_mqtt: Modify esp_rmaker_mqtt_publish to accept binary input as well

See merge request app-frameworks/esp-rainmaker!117
2020-06-22 14:33:21 +08:00
Hrishikesh Dhayagude
9b8392594b esp_rmaker_mqtt: Modify esp_rmaker_mqtt_publish to accept binary input as well 2020-06-22 11:34:28 +05:30
Piyush Shah
c100c8cbfd Merge branch 'task/cli_claim_restructure' into 'master'
cli_claim: Restructuring claiming workflow

See merge request app-frameworks/esp-rainmaker!115
2020-06-17 22:37:35 +08:00
Shivani Tipnis
56beaa740c cli_claim: Restructuring claiming workflow 2020-06-17 19:50:30 +05:30
Piyush Shah
38e2367cdc Merge branch 'bugfix/efuse' into 'master'
esp_claim: Change the name of efuse block as per changes in esp-idf

See merge request app-frameworks/esp-rainmaker!116
2020-06-17 00:26:25 +08:00
Piyush Shah
7ffb174127 esp_claim: Change the name of efuse block as per changes in esp-idf 2020-06-16 19:02:41 +05:30
Piyush Shah
53665c638d Merge branch 'task/cli_claim_data_addr' into 'master'
claim: Add support for custom input flashing address

See merge request app-frameworks/esp-rainmaker!114
2020-06-09 20:33:20 +08:00
Shivani Tipnis
b93391f6e4 cli_claim: Add support for custom input flashing address 2020-06-09 14:32:03 +05:30
Piyush Shah
10ae346677 Merge branch 'bugfix/ota_upgrade' into 'master'
ota: Fix OTA Upgrade error messages and ota service checks handling

See merge request app-frameworks/esp-rainmaker!111
2020-06-06 03:37:15 +08:00
Shivani Tipnis
647ab47ebf ota: Fix OTA Upgrade error messages and ota service checks handling
Fixed message handling for OTA failure if no internet connectivity

Fixed config check for ota service support before uploading image
2020-06-06 00:35:16 +05:30
Piyush Shah
3bf828e339 Merge branch 'task/def_ota_server_cert' into 'master'
esp_rmaker_ota: Add the default server certificate and make it easy to use

See merge request app-frameworks/esp-rainmaker!112
2020-06-05 18:55:37 +08:00
Piyush Shah
4970fd07ba examples: Changes in OTA calls
switch: Used the default OTA Server certificate to demonstrate simplest usage.
led_light: Added OTA calls that demonstrate using own server certificate.
2020-06-05 11:13:49 +05:30
Piyush Shah
eed57b2797 esp_rmaker_ota: Add the default server certificate and make it easy to use 2020-06-05 11:13:45 +05:30
Piyush Shah
855dfb515b Merge branch 'feature/mbedtls_dynamic_alloc' into 'master'
sdkconfig: Enabling dynamic allocation and freeing of mbedtls buffers.

See merge request app-frameworks/esp-rainmaker!110
2020-05-28 15:52:41 +08:00
Chirag Atal
34da10fde3 sdkconfig: Enabling dynamic allocation and freeing of mbedtls buffers. 2020-05-27 17:40:36 +05:30
Piyush Shah
832c1e6a26 Merge branch 'cli/ota_upgrade' into 'master'
cli: Add support for OTA Upgrade

See merge request app-frameworks/esp-rainmaker!108
2020-05-24 01:07:23 +08:00
Piyush Shah
6359fb5f3f Merge branch 'task/ota_server_cert' into 'master'
switch: Minor changes to the OTA Server certificate

See merge request app-frameworks/esp-rainmaker!109
2020-05-24 00:59:08 +08:00
Shivani Tipnis
0035977638 cli: Add support for OTA Firmware Upgrades 2020-05-23 22:02:38 +05:30
Piyush Shah
6bd86626a5 switch: Minor changes to the OTA Server certificate
- Added a comment in the certificate so that its purpose is clear.
- Added a "const" to the server certificate variable so that it stays in flash.
2020-05-23 17:33:57 +05:30
Piyush Shah
d516b3657c Merge branch 'task/ota_workflow' into 'master'
esp_rmaker_ota: Change the esp_rmaker_ota_enable() API

See merge request app-frameworks/esp-rainmaker!105
2020-05-22 22:18:09 +08:00
Piyush Shah
1a32410d00 switch: Use new OTA API and server certificate 2020-05-22 19:08:50 +05:30