Currently written to support a D1 mini.
Before compiling:
- Create a certificate for the IoT device.
- Download the certificate and private key.
- Grab the Amazon Root CA 1 from here.
- Go to IoT Core Settings and copy the "Custom endpoint".
- Run the following:
echo \#define AWS_IOT_ADDRESS \"<IOT CUSTOM ENDPOINT>\" > config.h
xxd -i <CA FILE> >> config.h
xxd -i <CERT FILE> >> config.h
xxd -i <KEY FILE> >> config.h
- Copy config.h to src/