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.

CCS/CC3220SF: AWS read api

Part Number: CC3220SF

Tool/software: Code Composer Studio

Hi,

what is the AWS  api to get message ?

there is a callback?

  • Hi,

    I suggest you look through and examine the AWS demos provided in the SimpleLink AWS plugin: https://www.ti.com/tool/SIMPLELINK-SDK-PLUGIN-FOR-AWSIOT

    There are a two methods of communicating to and from the CC32xx device to AWS.

    Option one is to use AWS as an MQTT broker. There is documentation on the site around using MQTT topics to send data:https://docs.aws.amazon.com/iot/latest/developerguide/topics.html

    That is what the subscribe_publish sample from the plugin does - it connects to AWS, and then subscribes to a topic. From there, it listens to messages from the cloud on that topic. When a message is sent from the cloud on that topic it will be received while the device is running aws_iot_mqtt_yield(). From there, received data will be passed to the registered callback for that topic.

    Option 2 would be to use device shadows. This is an AWS-specific capability, that leverages MQTT to perform state-keeping on the CC32xx. The shadow_sample demo shows how to use device shadows. Documentation on that option can be found here: https://docs.aws.amazon.com/iot/latest/developerguide/iot-device-shadows.html

    Let me know if you need more clarification or have further questions on how to send data to the AWS cloud from a CC32xx.

    Regards,

    Michael