Skip to content

Latest commit

 

History

History
66 lines (52 loc) · 3.14 KB

windows-10-iot-enterprise-ltsb-utx-3115-csharp.md

File metadata and controls

66 lines (52 loc) · 3.14 KB
platform device language
windows-10-iot-enterprise-ltsb
utx-3115
csharp

Run a simple sample on UTX-3115 device running Windows 10 IoT Enterprise LTSB


Table of Contents

  • Introduction
  • Step 1: Prerequisites
  • Step 2: Prepare your Device
  • Step 3: Build and Run the Sample

Introduction

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

Step 1: Prerequisites

Step 2: Prepare your Device

Install Windows 10 IoT Enterprise LTSB on UTX-3115

  • 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.

Step 3: Build and Run the sample

  • 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.