How do you interact with the shadow of the thing created on AWS IoTCore using the mqtt protocol?
Why in the ais_demo/amazon-freertos/include/aws_credential.h the thing name is not needed for the application?
by "not needed for this application", it implies that the application is the AVS device, "echo dot" like.
But to use with shadow, yes IOT_THING_NAME is needed, to known to what device shadow communicate.
Thank you for the confirmation. How do you communicate with the shadow of the thing?
Communication with the Thing Shadow is done through a series of pub/sub topics in AWS IoT Core. This documentation provides additional details.
Device shadow service for AWS IoT - AWS IoT
You can find the amazon demo "aws_shadow_lightbulb_on_off" that will help you.
what is your target board ?
The sln-alexa-iot board
The thing is defined by the serial number of the part in our application. In the next version of our SDK, we will be initializing the shadow based on this serial number but the code can be changed to use a serial number of your choice. We moved away from the MACRO based Thing Name as it does not scale because it's compiled into code.
Indeed, it is sample code. Usually, things like secure element root of trust fingerprint can work. The thing name must be unique for a given AWS region and account.
Retrieving data ...