Commit Graph

23 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
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
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
Switi Mhaiske
b939945995 cpp support: Make header files compatible with CPP 2020-07-20 19:56:03 +05:30
Piyush Shah
7d460768b7 esp_claim: Fixed a compilation error introduced due to a previous commit 2020-07-14 00:26:27 +05:30
Hrishikesh Dhayagude
c1831248ea esp_rmaker_core: Fix usage of strncpy 2020-07-10 21:47:34 +05:30
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
Chirag Atal
4796f987b7 esp_rmaker_time_sync: Expose time_sync APIs. 2020-07-03 17:48:51 +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
Chirag Atal
dc3b34ccdf esp_rmaker_console: Add support for serial console. 2020-06-25 17:40:34 +05:30
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
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
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
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
84389ec967 esp_rmaker_ota: Change the esp_rmaker_ota_enable() API
Instead of using config options, use argument to choose the OTA workflow.
Also added some more status updates in the OTA workflow.
2020-05-22 19:08:39 +05:30
Chirag Atal
378184d4c6 esp_rmaker_core: Changes to self claiming workflow to reduce RainMaker core task's stack requirement. It is now reduced to 4KB. 2020-05-20 18:27:55 +05:30
Piyush Shah
18af9e5709 Merge branch 'feature/create_device_dynamic' into 'master'
esp_rmaker_core: Added an API to report the changes to devices and their...

See merge request app-frameworks/esp-rainmaker!98
2020-05-16 01:39:24 +08:00
Chirag Atal
89889d11fa esp_rmaker_core: Expose an API to report node details
This will enable adding devices even after rainmaker has started, particularly for use cases like bridges/hubs.
2020-05-15 19:55:21 +05:30
Chirag Atal
bbbe4b90d8 esp_rmaker_core: Fixed a memory leak in node config mqtt publish. 2020-05-15 19:08:32 +05:30
Piyush Shah
937e13f59e esp_rmaker_claim: Changes as per the changes in the ESP Claim Service
- Claiming REST API paths and payloads changed.
- Claiming Service server certificate name changed for consistency.
- NVS value for MQTT Host given priority over the Config option.
- Minor change to print message during an MQTT disconnect, mostly
  seen during the first connection post a claiming.
- Some error prints improved to indicate the need of claiming.
2020-04-27 11:57:53 +05:30
Piyush Shah
756cc2051b user_node_mapping: Fixed a memory leak 2020-04-16 18:34:49 +05:30
Piyush Shah
72242952a2 esp_rainmaker: Add various required components, examples and CLI 2020-04-16 04:13:35 +05:30