From 5efc33ce2590c9cb6604f27e1a55b0a6799a4abd Mon Sep 17 00:00:00 2001 From: Anuj Deshpande Date: Mon, 6 Aug 2018 14:14:52 +0530 Subject: [PATCH 1/2] aws-iot: Make thing shadow example compatible with v3 of aws iot sdk --- .../protocols/aws_iot/thing_shadow/main/thing_shadow_sample.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/protocols/aws_iot/thing_shadow/main/thing_shadow_sample.c b/examples/protocols/aws_iot/thing_shadow/main/thing_shadow_sample.c index 0a382b9d6b..82ef783585 100644 --- a/examples/protocols/aws_iot/thing_shadow/main/thing_shadow_sample.c +++ b/examples/protocols/aws_iot/thing_shadow/main/thing_shadow_sample.c @@ -200,12 +200,14 @@ void aws_iot_task(void *param) { windowActuator.pData = &windowOpen; windowActuator.pKey = "windowOpen"; windowActuator.type = SHADOW_JSON_BOOL; + windowActuator.dataLength = sizeof(bool); jsonStruct_t temperatureHandler; temperatureHandler.cb = NULL; temperatureHandler.pKey = "temperature"; temperatureHandler.pData = &temperature; temperatureHandler.type = SHADOW_JSON_FLOAT; + temperatureHandler.dataLength = sizeof(float); ESP_LOGI(TAG, "AWS IoT SDK Version %d.%d.%d-%s", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, VERSION_TAG); From fe357c3617946be5fdbdf78c4d43717e12d3a2ef Mon Sep 17 00:00:00 2001 From: Anuj Deshpande Date: Tue, 7 Aug 2018 11:25:44 +0530 Subject: [PATCH 2/2] aws-iot: Update to 3.0.1 release - Fixes https://github.com/espressif/esp-idf/issues/2224 - Fixes https://github.com/espressif/esp-idf/issues/1808 --- components/aws_iot/aws-iot-device-sdk-embedded-C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/aws_iot/aws-iot-device-sdk-embedded-C b/components/aws_iot/aws-iot-device-sdk-embedded-C index 8bf852db77..299183238f 160000 --- a/components/aws_iot/aws-iot-device-sdk-embedded-C +++ b/components/aws_iot/aws-iot-device-sdk-embedded-C @@ -1 +1 @@ -Subproject commit 8bf852db77c360eebfa4b800754fdb90e29ea43e +Subproject commit 299183238ffe7a3e6a5ca0af9db19c10eaca62cf