AWS IoT device SDK for embedded C

The AWS IoT device SDK for embedded C is a collection of C source files to securely connect to the AWS IoT platform. It includes transport clients MQTT, TLS implementation and supports Thing Shadow:

Using the library

To work with AWS IoT, you must:

  1. Include the required AWS IoT header files in your application source code. For example:
  2. #include <aws_iot_config.h>
    #include <aws_iot_log.h>
    #include <aws_iot_shadow_interface.h>
    #include <aws_iot_version.h>
  3. Link against the AWS IoT device SDK static library. The library provides a pkg-config file, awsiotsdk.pc. To configure the proper compilation flags and linked libraries, add the following lines in your makefile:
  4. [...]
     
    CFLAGS += $(shell pkg-config --cflags awsiotsdk)
    LDLIBS += $(shell pkg-config --libs --static awsiotsdk)
     
    [...]

Note Find the AWS IoT device SDK for embedded C API documentation at http://aws-iot-device-sdk-embedded-c-docs.s3-website-us-east-1.amazonaws.com/index.html.

Build your AWS IoT application

You can build your own AWS IoT application:

SUMMARY = "My AWS IoT device application"
 
[...]
 
DEPENDS = "awsiotsdk-c"
 
[...]
 
inherit aws-iot
 
[...]

Note To learn how to build an image with AWS IoT support, see Create an AWS IoT image.