Skip to content
Sample repository for working with ESP-IDF on AWS IoT with the ESP32
C
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
README.md
platformio.ini

README.md

ESP-IDF AWS IoT

Steps

  • Install PlatformIO Core

  • Create a device and export the three certificates to:

    • src/aws-root-ca.pem: Retrieve from HERE
    • src/private.pem.key: Private Key Certificate
    • src/certificate.pem.crt: Device Certificate
  • Update #define CONFIG_AWS_IOT_MQTT_HOST "xxxxxxxxxxxxx-ats.iot.us-east-1.amazonaws.com" in sdkconfig.h

    • Run aws iot describe-endpoint --endpoint-type iot:Data-ATS to get address
  • Update build_flags in platformio.ini

    • -DCONFIG_WIFI_SSID=\"wifissid\"
    • -DCONFIG_WIFI_PASSWORD=\"wifipass\"
    • -DCONFIG_AWS_IOT_TOPIC=\"test_topic/esp32\"
  • Run these commands:

    # Build project
    platformio run
    
    # Upload firmware
    platformio run --target upload

Attribution

You can’t perform that action at this time.