Sends sensor data from a MXChip AZ3166 IoT Devkit to Azure IoT Hub at a defined interval
- Run through Get started - IoT DevKit guide
- Prepare your development environment
- Provision your device using the Azure DPS
- Load your IoT Hub Device Connection String
- Git clone && Upload Device Code
Description | |
---|---|
send_interval |
The interval at which the device will send the payload to IoT Hub. |
setup_delay |
The delay the setup messages will be displayed on the screen. |
If running 24 hours a day - keep the
send_interval
greater than 10.8 seconds (10800ms) to stay within the IoT Hub Standard tier free edition 8,000 messages per day
An example of the payload that will be sent to IoT Hub
{
"topic": "iot",
"Temperature": 31.2999990000000,
"Humidity": 47.0000000000000
}
See RoomTempDashboard for a realtime dashboard