| platform | Windows 10 |
|---|---|
| device | HF-W/IoT |
| language | c |
# Introduction
About this document
This document describes how to connect HF-W/IoT device running Windows 10 with Azure IoT SDK. This multi-step process includes:
- Configuring Azure IoT Hub
- Registering your IoT device
- Build and deploy Azure IoT SDK on device
You should have the following items ready before beginning the process:
- Prepare your development environment
- Setup your IoT hub
- Provision your device and get its credentials
- HF-W/IoT device.
- None.
-
Start a new instance of Visual Studio 2015. Open the azure_iot_sdks.sln solution in the cmake folder in your home directory.
-
In Visual Studio, in Solution Explorer, navigate to simplesample_amqp project, open the simplesample_amqp.c file.
-
Locate the following code in the file:
static const char* connectionString = "[device connection string]"; -
Replace the above placeholder with device connection string you obtained in Step 1 and save the changes.
-
See Manage IoT Hub to learn how to observe the messages IoT Hub receives from the application.
-
In Solution Explorer, right-click the simplesample_amqp project, click Debug, and then click Start new instance to build and run the sample. The console displays messages as the application sends device-to-cloud messages to IoT Hub.
-
See Manage IoT Hub to learn how to send cloud-to-device messages to the application.