aws-iot: Make thing shadow example compatible with v3 of aws iot sdk

pull/2177/merge
Anuj Deshpande 2018-08-06 14:14:52 +05:30
rodzic 5f56f2ca01
commit 5efc33ce25
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -200,12 +200,14 @@ void aws_iot_task(void *param) {
windowActuator.pData = &windowOpen; windowActuator.pData = &windowOpen;
windowActuator.pKey = "windowOpen"; windowActuator.pKey = "windowOpen";
windowActuator.type = SHADOW_JSON_BOOL; windowActuator.type = SHADOW_JSON_BOOL;
windowActuator.dataLength = sizeof(bool);
jsonStruct_t temperatureHandler; jsonStruct_t temperatureHandler;
temperatureHandler.cb = NULL; temperatureHandler.cb = NULL;
temperatureHandler.pKey = "temperature"; temperatureHandler.pKey = "temperature";
temperatureHandler.pData = &temperature; temperatureHandler.pData = &temperature;
temperatureHandler.type = SHADOW_JSON_FLOAT; 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); ESP_LOGI(TAG, "AWS IoT SDK Version %d.%d.%d-%s", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, VERSION_TAG);