# AWS IoT Device Shadow Operations Demo for MCU?

**URL:** <https://forums.freertos.org/t/aws-iot-device-shadow-operations-demo-for-mcu/16914>\
**Category:** Libraries\
**Created:** [March 9, 2023, 10:36pm UTC](https://forums.freertos.org/t/aws-iot-device-shadow-operations-demo-for-mcu/16914 "2023-03-09T22:36:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![schoeler](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/schoeler/32/1422_2.png) [@schoeler](https://forums.freertos.org/u/schoeler)\
**Post date:** [March 9, 2023, 10:36pm UTC](https://forums.freertos.org/t/aws-iot-device-shadow-operations-demo-for-mcu/16914/1 "2023-03-09T22:36:59Z")

</div>

Hi all,

Is there a demo that uses AWS IoT Device Shadow library with an MCU? I found one for windows, but it’s not clear where the tcp sockets are abstracted. A demo with an actual MCU would be very useful.  
Thanks.

---

<div class="post-metadata">

**Author:** ![aggarg](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/aggarg/32/4245_2.png) [@aggarg](https://forums.freertos.org/u/aggarg)\
**Post date:** [March 10, 2023, 5:42am UTC](https://forums.freertos.org/t/aws-iot-device-shadow-operations-demo-for-mcu/16914/2 "2023-03-10T05:42:15Z")

</div>

This one - [iot-reference-stm32u5/shadow\_device\_task.c at main · FreeRTOS/iot-reference-stm32u5 · GitHub](https://github.com/FreeRTOS/iot-reference-stm32u5/blob/main/Common/app/shadow_device_task.c)

---

<div class="post-metadata">

**Author:** ![schoeler](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/schoeler/32/1422_2.png) [@schoeler](https://forums.freertos.org/u/schoeler)\
**Post date:** [March 14, 2023, 8:03pm UTC](https://forums.freertos.org/t/aws-iot-device-shadow-operations-demo-for-mcu/16914/3 "2023-03-14T20:03:28Z")

</div>

Are there any examples using an MCU that uses WLAN?  
Which socket abstraction would that use?

---

<div class="post-metadata">

**Author:** ![schoeler](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/schoeler/32/1422_2.png) [@schoeler](https://forums.freertos.org/u/schoeler)\
**Post date:** [March 14, 2023, 9:39pm UTC](https://forums.freertos.org/t/aws-iot-device-shadow-operations-demo-for-mcu/16914/4 "2023-03-14T21:39:29Z")

</div>

Is secure sockets abstraction deprecated?

---

<div class="post-metadata">

**Author:** ![PaulB-AWS](https://avatars.discourse-cdn.com/v4/letter/p/a183cd/32.png) [@PaulB-AWS](https://forums.freertos.org/u/PaulB-AWS)\
**Post date:** [March 15, 2023, 6:16pm UTC](https://forums.freertos.org/t/aws-iot-device-shadow-operations-demo-for-mcu/16914/5 "2023-03-15T18:16:28Z")

</div>

@schoeler The amazon-freertos repository which includes the secure sockets abstraction has been deprecated as you noted. Our MQTT library, coreMQTT, uses a more generic transport interface.

You might find [this demo targeting the FreeRTOS Windows Simulator](https://github.com/FreeRTOS/FreeRTOS/blob/main/FreeRTOS-Plus/Demo/AWS/Device_Shadow_Windows_Simulator/Device_Shadow_Demo/DemoTasks/ShadowDemoMainExample.c) a helpful reference for shadow operations in general.

Another AWS IoT Core [Shadow example targeting the NXP IMX RT1060](https://github.com/FreeRTOS/iot-reference-nxp-rt1060/tree/main/examples/evkbmimxrt1060/shadow) is also available.

Additionally, the STM32u5 reference integration has an [example mbedtls transport implementation](https://github.com/FreeRTOS/iot-reference-stm32u5/blob/main/Common/net/mbedtls_transport.c) and example [wifi connection / disconnection task](https://github.com/FreeRTOS/iot-reference-stm32u5/blob/main/Common/net/mxchip/mx_netconn.c#L410).
