ESP32 template for connecting to the AWS IoT platform
C Makefile C++ Objective-C Shell
Latest commit 2f29c41 Dec 12, 2016 @carsonmcdonald committed on GitHub Merge pull request #4 from carsonmcdonald/espidf1
Updates for esp-idf 1.0

README.md

esp32-aws-iot

ESP32 template for connecting to the AWS IoT platform

Please make sure you have read the getting started guide before trying to do anyting with this template.

This template is based on and contains the code from the aws-iot-device-sdk-embedded-C project with an ESP32 port. It may help to review that project before attempting to use this template.

The following files and directory require modification based on your WIFI settings and the configuration created in the IoT console:

main/main.c
main/include/aws_iot_config.h
main/certs

main/main.c:

This is where your WIFI information will need to be set. It also contains a function called "record_temp_task" that contains the code used data using the AWS IoT SDK.

#define WIFI_SSID "WIFI SSID"
#define WIFI_PASS "WIFI PASSWORD"

main/include/aws_iot_config.h:

This file needs to be modified to match the information given in the AWS IoT console. Follow the instructions given in the getting started guide to figure out what to put here.

#define AWS_IOT_MQTT_HOST              "something.amazonaws.com"
#define AWS_IOT_MQTT_PORT              8883
#define AWS_IOT_MQTT_CLIENT_ID         "SomeClientID"
#define AWS_IOT_MY_THING_NAME          "SomeThingName"

main/certs:

This directory needs to contain the root cert and the certs generated by the AWS IoT console. Follow the instructions given in the getting started guide to build these. They must match the names here exactly.

  root-CA.crt
  certificate.pem.crt
  private.pem.key