AWS SDK In C

K1 wrote on March 29, 2018:

Hi,

I’m working with B-L475E-IOT01A2 board from STMicroelectronics which recommended by AWS.
Hence there is no AWS SDK in C for microcontrollers so how this board can define itself as a thing in AWS IoT service automatically and download the certificates directly to microcontroller? This is possible by using Python(and other SDKs) for powerful enough (faster, linux/windows) microcontrollers, but what about microcontrollers which support only C.

Any suggestion, idea and help would be really appreciated.
Regards
Keivan

Edited by: K1 on Apr 2, 2018 3:55 AM

hbouvier-AWS wrote on April 02, 2018:

Hello,

You want to use Amazon FreeRTOS available here (uses only C):
https://github.com/aws/amazon-freertos
It has example projects for that platform. You can find the getting started guide here:
https://docs.aws.amazon.com/freertos/latest/userguide/getting_started_st.html

Also, there is an AWS C SDK, it is available for download here:
https://github.com/aws/aws-iot-device-sdk-embedded-C

Best,

Hugues

Edited by: HuguesB-AWS on Apr 2, 2018 2:22 PM

Edited by: HuguesB-AWS on Apr 2, 2018 2:23 PM

K1 wrote on April 03, 2018:

Hi Hugues,

Thanks for your guides.
Actually, my purpose is that the device, say ST IoT Node, can define IoT Thing in AWS IoT Platform. It is possible in other SDKs like Python(with boto3) or java but there is no SDK for that in C(at least I couldn’t find it). For example in python we use the following code to define thing in AWS IoT Platform:

import boto3
client = boto3.client('iot')
response = client.create_thing(
    thingName='string',
    thingTypeName='string',
    attributePayload={
        'attributes': {
            'string': 'string'
        },
        'merge': True|False
    }
)

I want to do this in C, it means the device can define itself in platform.
I want to know if there is such an SDK in C for micro-controllers or if there is a way to do that.
Any help or suggestion would be really appreciated.
Keivan

awsota wrote on April 05, 2018:

Hello Keivan,

Currently, there is no API support in the C SDK nor Amazon FreeRTOS to create Things from the device as you described. However, take a look at our HTTP API docs
https://docs.aws.amazon.com/iot/latest/apireference/API_Operations.html and https://docs.aws.amazon.com/iot/latest/apireference/API_CreateThing.html.
If you have HTTP, that may be a viable solution for you from the device.

Regards.