This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220S-LAUNCHXL: AWS IOT SDK Embedded C Shadow_Sample example code out of date.

Part Number: CC3220S-LAUNCHXL

AWS IOT SDK Embedded C Shadow_Sample example code, and presumably the other two examples, are out of date with the AWS github code. The result is that you can/will get an error:

    WARN:  shadow_delta_callback L#506 Old Delta Message received - Ignoring rx: ????? local: ?????

when you update the AWS Shadow Device via the AWS Command Line and that update is then forwarded to the CC3220 device. E.g.

aws iot-data update-thing-shadow --thing-name mything --payload "{\"state\":{\"desired\":{\"windowOpen\":true}}}" out.txt

The fix is to get the latest code from the AWS github repository and copy it into the TI code, but you have to add the following into aws_iot_shadow.c

/*
 * TODO AWS team forgot to initialize the newly added parameter
 * 'mqttPacketTimeout_ms', so do it here.  Due to this, this file is now
 * out of sync with the AWS v2.1.1 code base:
 */
mqttInitParams.mqttPacketTimeout_ms = 5000;

in the correct spot of course. So, this is FYI to anyone else using the code and also a recommendation to the TI team to get the latest from code AWS github.