book collections email follower instructable user
Picture of Secure IOT With AWS and Hornbill ESP32 Using Arduino.

Security of connected devices is of paramount concern. There are several possible ways to make the devices secure. One of the most essential and widely used options is to use end to end encryption. The widely used Transport Layer Security (TLS) version 1.2 is the latest standard used on web for secure connections including banking. There are very few micro-controller based solutions that implement TLS 1.2 due to lack of resources. ESP32 is one of the most affordable options out there. So let’s look at securely connecting Hornbill ESP32 Dev board to Amazon web services (AWS) IOT.

We will start with configuring AWS account, setting up the thing, generating the security certificates, testing with a MQTT desktop client and then communicating with the hardware.

You'll need an ESP32 Dev board to accomplish this. We are running a campaign for the most affordable and feature rich ESP32 dev tools called Hornbill. Get one from the campaign here:

https://www.crowdsupply.com/explore-embedded/hornbill

Step 1: AWS User Account :

Picture of AWS User Account :

For using the AWS services you need to have a user account and login using the AWS Login link

Existing users can directly login and directly jump to next. New users should register first and link the credit card for payments. Basic plan is free for first Year, other plans are chargeable.

gbarbaresi made it!3 months ago
I could not get the pubSubTest sketch to connect with AWS. I think this is because I don't know what HOST_ADDRESS, CLIENT_ID and TOPIC_NAME are which need to be dropped into pubSubTest. When setting up AWS account I created the Broker Address/Host Name, Broker Port, aws-root-ca.pem, certificate.pem.crt and private.pem.key. Are any of these what I need?
ESP32_DHT11.jpg
Jayefuu3 months ago
Excellent tutorial, thank you! Really clear and just what I needed.
gbarbaresi3 months ago
I don't follow where the HOST_ADDRESS, CLIENT_ID and TOPIC_NAME are found to drop into the pubSubTest sketch. When setting up AWS account we created a Broker
Address/Host Name, Broker
Port, aws-root-ca.pem, certificate.pem.crt and private.pem.key. Are any of these what we need?

KunioN22 years ago

Thank you.

Please provide examples of Device Shadows for AWS IoT.