aws / aws-iot-device-sdk-arduino-yun

SDK for connecting to AWS IoT from an Arduino Yún.
Apache License 2.0
163 stars 77 forks source link

Cannot read Keyed items beginning with 'F' #11

Closed lukeplausin closed 8 years ago

lukeplausin commented 8 years ago

Hi All,

I have noticed there is a bug whereby you can't access key/value pairs when the value begins with an uppercase F.

Shadow state {"state":{"desired":{"text":"Foxtrot"}}} myClient.getDeltaValueByKey("JSON-0", "text", buffer, 32); buffer = '0\'

Shadow state {"state":{"desired":{"text":"Golf"}}} myClient.getDeltaValueByKey("JSON-0", "text", buffer, 32); buffer = "Golf"

liuszeng commented 8 years ago

Hi @lukeplausin ,

Thank you for using the AWS IoT Arduino Yun SDK! This is indeed a bug in JSON key/value pair retrieving process. We'll look into fixing this and incorporate it in the next release.

Thanks, Liusu

liuszeng commented 8 years ago

Fixed in release v2.1.1.