platform | device | language |
---|---|---|
windows-10-iot-enterprise-ltsb |
utx-3115 |
csharp |
- Introduction
- Step 1: Prerequisites
- Step 2: Prepare your Device
- Step 3: Build and Run the Sample
About this document
This document provides step-by-step guidance on how to connect an UTX-3115 device running Windows 10 IoT Enterprise LTSB 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
- Computer with GitHub installed and access to the azure-iot-sdks GitHub private repository.
- UTX-3115 device.
- Install any version of Visual Studio 2015.
- Install Microsoft Azure SDK.
- Setup your IoT hub
- Provision your device and get its credentials
- Create a bootable USB Drive. Please follow this guide on how to create a bootable drive (https://www.microsoft.com/download/windows-usb-dvd-download-tool).
- Insert the bootable USB Drive from the previous step into your UTX-3115. Turn on your UTX-3115device and press the Delete key.
- Change the BIOS Boot option filter to UEFI and Legacy.
- Change the Boot Option Priorities to boot from your USB Drive.
- Save changes and restart your UTX-3115. Follow on screen instructions to install Windows Operating System on your UTX-3115.
-
Download the Azure IoT SDK 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 visual Studio, under Solution Explorer, right-click the DeviceClientAmqpSample project, click Debug −> 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 application and how to send cloud-to-device messages to the application.