-
Install PlatformIO Core
-
Create a device and export the three certificates to:
src/aws-root-ca.pem
: Retrieve from HEREsrc/private.pem.key
: Private Key Certificatesrc/certificate.pem.crt
: Device Certificate
-
Update
#define CONFIG_AWS_IOT_MQTT_HOST "xxxxxxxxxxxxx-ats.iot.us-east-1.amazonaws.com"
insdkconfig.h
- Run
aws iot describe-endpoint --endpoint-type iot:Data-ATS
to get address
- Run
-
Update
build_flags
inplatformio.ini
-DCONFIG_WIFI_SSID=\"wifissid\"
-DCONFIG_WIFI_PASSWORD=\"wifipass\"
-DCONFIG_AWS_IOT_TOPIC=\"test_topic/esp32\"
-
Run these commands:
# Build project platformio run # If you get an error `Kconfig.projbuild' not found (in 'source "$COMPONENT_KCONFIGS_PROJBUILD"').`, run this command pip3 uninstall kconfiglib # Upload firmware platformio run --target upload
t04glovern/esp-idf-aws-iot
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Sample repository for working with ESP-IDF on AWS IoT with the ESP32
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published