page_type | description | languages | products | ||||||
---|---|---|---|---|---|---|---|---|---|
sample |
Connect an MXCHIP AZ3166 to Azure IoT using Azure RTOS |
|
|
This Readme provides basic details to clone the repo and flash the device. For a detailed walkthrough on how to build the image, flash the device, create an IoT Central application, and connect the device to it, see the companion article Quickstart: Connect an MXCHIP AZ3166 devkit to IoT Central.
For guidance on connecting additional devices, see the series Getting started with Azure RTOS.
- The MXCHIP AZ3166 IoT DevKit
- Wi-Fi 2.4 GHz
- USB 2.0 A male to Micro USB male cable
-
Recursively clone the repository:
git clone --recursive https://github.com/azure-rtos/getting-started.git
-
Install the development tools:
getting-started\tools\get-toolchain.bat
-
Add Wi-Fi and Azure IoT configuration to the config file:
getting-started\MXChip\AZ3166\app\azure_config.h
Note: comment out #define ENABLE_DPS if you want to connect to a IoT Hub without using DPS.
-
Build the binary image:
getting-started\MXChip\AZ3166\tools\rebuild.bat
-
Flash the image to the device by copying the image file to the AZ3166 drive:
getting-started\MXChip\AZ3166\build\app\mxchip_azure_iot.bin
-
Configure a serial port app at BAUD 115,200 to monitor the debug output from the device