How to connect to aws cloud

I did browse through legato documentation, it seems there is no straights forward approach how to connect device to cloud.

Example I want to leverage AWS Embedded SDK C

to connect to AWS IoT core using MQTT.

How can I do this?

Didn’t you find openssl version problem before?

Have you tried http post?

Hi @babang.parhusip Were you able to connect to AWS cloud?

To connect to AWS IoT Core using the AWS Embedded C SDK and MQTT, follow these steps:

  1. Install AWS IoT Embedded C SDK: Download the SDK from the AWS IoT SDK for Embedded C GitHub repository and set up your environment (cross-compiler if needed for embedded systems).

  2. Set up AWS IoT Core: In the AWS Console, create an IoT thing, certificate, and policy. Attach the policy to the certificate and download the certificate and keys.

  3. Configure the SDK: Update your config files in the SDK to use the endpoint, certificate, private key, and root CA from your AWS IoT setup.

  4. Code implementation:

  5. Initialize the MQTT client from the SDK.

  6. Set up your TLS context using the certificate and private key.

  7. Use the MQTT API to connect to AWS IoT Core with the client and publish/subscribe to topics.

  8. Test: Once set up, you can test the connection and ensure the device is able to send and receive MQTT messages.

I did something similar in my project, and the SDK documentation helped a lot to guide me through setup and testing.

Here is an example on how to compile azure sdk: