/my-smart-light

esp-aws-iot for smart light

Primary LanguageCApache License 2.0Apache-2.0

Dev Duck

duck

It's a duck. It connects to AWS. It lights up on command for 10 seconds.

Instructions

Checkout the devduck branch.

Change directories to examples/mqtt/tls_mutual_auth

In the AWS IoT console, create a thing and generate a certificate.

Download and place the following files in the certs folder.

├── certs
│   ├── client.crt
│   ├── client.key
│   └── root_cert_auth.pem

Set Up esp-idf tools

source ~/[PATH TO ESP-IDF]/esp-idf/export.sh

Connect the ESP32 module and find the serial port

ls /dev/cu.usb*

Set the target

idf.py set-target esp32

Configure the example. Set the lambda URL

idf.py menuconfig

Build

idf.py build

Flash idf.py -p PORT [-b BAUD] flash

Monitor the serial port

idf.py -p PORT monitor

ESP-AWS-IoT