- Clone the repo:
git clone https://github.com/yona75/dts2019-workshop
- Navigate to ~/environment/esp/dts2019-workshop/tools/aws_config_quick_start/ and open file configure.json Edit you Thing name, WiFi credentials, and WiFi security mode which should be eWiFiSecurityWPA2
-
Save the file
-
In the Terminal window navigate to ~/environment/esp/dts2019-workshop/tools/aws_config_quick_start and execute python SetupAWS.py setup command to provision your Thing, Certificate, and Policy:
cd ~/environment/esp/dts2019-workshop/tools/aws_config_quick_start
python SetupAWS.py setup
If successful command will not produce any output, but you can verify in AWS IoT Core Console that new Thing, Certificate and Policy were created.
- In the Terminal window navigate to ~/environment/esp/dts2019-workshop/demos/espressif/esp32_devkitc_esp_wrover_kit/make and execute make menuconfig command:
cd ~/environment/esp/dts2019-workshop/demos/espressif/esp32_devkitc_esp_wrover_kit/make
make menuconfig
- Click Save and then Exit
- Execute make command
make
- Once compilation is done, download these 3 files to your local computer:
- build/aws_demos.bin
- build/partitions_example.bin
- build/bootloader/bootloader.bin
-
Flash the firmware and observe console output as described in Uploading compiled firmware to ESP32 development board
-
In the Terminal window navigate back to ~/environment/esp/dts2019-workshop and execute git checkut shadow-demo command:
cd ~/environment/esp/dts2019-workshop
git checkout shadow-demo
You are now in the shadow-demo branch
- Navigate to ~/environment/esp/dts2019-workshop/demos/espressif/esp32_devkitc_esp_wrover_kit/make and execute make command:
cd ~/environment/esp/dts2019-workshop/demos/espressif/esp32_devkitc_esp_wrover_kit/make
make
- Once compilation is done, delete old aws_demos.bin, partitions_example.bin, and bootloader.bin from YOUR LAPTOP!!! and download again these 3 files to your local computer (If you will not delete or move old files on Mac they will be downloaded as aws_demos (1).bin, etc.):
- build/aws_demos.bin
- build/partitions_example.bin
- build/bootloader/bootloader.bin
-
Flash the firmware and observe console output as described in Uploading compiled firmware to ESP32 development board section
-
In AWS Console navigate to AWS IoT Core -> Manage -> -> Shadow Observe the sensors output
-
Edit the desired section of the demo to set LED colors (Insert this BEFORE reported section)
"desired": {
"leds": [
{
"red": 16,
"green": 0,
"blue": 0
},
{
"red": 0,
"green": 15,
"blue": 0
},
{
"red": 0,
"green": 0,
"blue": 15
},
{
"red": 15,
"green": 15,
"blue": 0
},
{
"red": 0,
"green": 15,
"blue": 15
}
]
},