- Testing Azure IoT Hub Device Provisioning Service (DPS)
- Testing Device Update for IoT Hub
- Testing IoT Hub device streams
- Receive temperature data every 30 seconds and push it Azure IoT Hub
- Make use of the Azure IoT Hub Device SDK (Azure SDK for embedded C)
- VS Code with PlatformIO extension
- ESP32 or ESP8266 board
- Temperature sensor (e.g. DHT22, TMP36, etc.)
- Prepare your
src/secrets.h
file- Execute the following command in the directory of this project:
-
echo "#ifndef SECRETS_H #define SECRETS_H #define SECRET_WIFI_SSID \"yourSSID\" #define SECRET_WIFI_PASSWORD \"yourWifiPassword\" #define SECRET_IOTHUB_FQDN \"yourIoTHubFQDN\" #define SECRET_DEVICE_ID \"yourDeviceID\" #define SECRET_DEVICE_KEY \"yourDeviceKey\" #endif /* SECRETS_H */" > src/secrets.h
-
- Replace all placeholder values (e.g.
yourSSID
andyourWiFiPassword
) with your data.
- Execute the following command in the directory of this project: