Giter Club home page Giter Club logo

esp32-aws-iot's Introduction

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

esp32-aws-iot's People

Contributors

carsonmcdonald avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.