ESP32-DevKitC Azure MQTT sample using BMP280 barometric pressure sensor and nanoFramework Azure IoT SDK Library
This example demonstrates how to use the Azure IoT SDK library and BMP280 pressure sensor.
Note:
- This example is configured for ESP32 but can be easily reconfigured for any nanoFramework-supported board with WiFi and I2C bus.
- Before building, rename
Config_template
toConfig
and provide the required setting values.- BMP280 sensor on the picture has non-standard pinout. Typical pinout is: black GND, red Vcc, yellow TX/SDA, white RX/SCL
- Visual Studio 2022 with nanoFramework extension
- nanoFramework-supported board with WiFi and I2C bus
From command prompt execute:
dotnet tool install -g nanoff
nanoff --platform esp32 --serialport COM7 --update
(replace COM7 with your com port)
For more info and instructions on how to prepare other boards refer to: nanoframework - getting started