This is an example project to work with Alora v2 Board and Azure IoT Hub for ESP32-based board. The project is made with Espressif IoT Development Framework
(ESP-IDF). Please check ESP-IDF docs for getting started instructions.
This project depends on ESPectro32 library!
First thing first, you should have already set up an Azure IoT Hub and add a device. To create your Microsoft Azure IoT Hub and add a device, follow the instructions outlined in the Setup IoT Hub Microsoft Azure Iot SDK page.
To get started, just take a look the main.cpp
file. Change the followings:
[YOUR_AZURE_IOT_HUB]
[YOUR_DEVICE_ID]
[YOUR_DEVICE_KEY]
The project is tested form ESPectro32 board. It is an IoT development board based-on ESP32 MCU, made by DycodeX.
An awesome board combines many sensors and actuators. Uncountable use case/project you can make with it. Get one here.
- Clone this repo
- Update submodules which it depends on:
git submodule update --init --recursive
- There's a symbolic link
arduino-esp32
. Change (recreate) the symbolic link to point to your local arduino-esp32 folder. - There're another two symbolic links:
Alora
andAzureIoTHub
. Clone ESPectro32-IDF, then recreate those two symbolic links to point to respective folder in ESPectro32-IDF folder you just cloned. Don't ask me why for this hassle, I'm too lazy to make them as separate repos :) - Try to
make
. Fingers crossed :)