platform | device | language |
---|---|---|
Windows 10 |
PICO-BT01 |
csharp |
About this document
This document describes how to connect PICO-BT01 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:
- Computer with Git client installed and access to the azure-iot-sdks GitHub public repository.
- PICO-BT01 device.
- Setup your IoT hub
- Provision your device and get its credentials
- Enter PICO-BT01 product page(http://www.aaeon.com/en/p/pico-itx-boards-pico-bt01/) download manual and start PICO-BT01 follow the instructions and install the Windows10 operating system.
-
Download the Azure IoT SDK and the sample programs and save them to your local repository.
-
Start a new instance of Visual Studio 2015.
-
Open the iothub_csharp_client.sln solution in the
csharp\device
folder in your local copy of the repository. -
In Visual Studio, from Solution Explorer, navigate to the samples folder.
-
In the DeviceClientAmqpSample project, open the Program.cs file.
-
Locate the following code in the file:
private const string DeviceConnectionString = "<replace>";
-
Replace
<replace>
with the connection string for your device. -
In Solution Explorer, right-click the DeviceClientAmqpSample 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 observe the messages IoT Hub receives from the Device Client AMQP Sample application and how to send cloud-to-device messages to the Device Client AMQP Sample application.