Skip to content

Commit ed9bfe9

Browse files
author
ashokkhurana
authored
Merge pull request Azure#32 from neeraj-khanna/master
Device-specific instructions for A610 from Centerm
2 parents e3e4197 + aca2e58 commit ed9bfe9

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
platform: windows 10 iot enterprise
3+
device: a610
4+
language: csharp
5+
---
6+
7+
Run a simple Csharp sample on A610 device running Windows 10 IoT Enterprise
8+
===
9+
---
10+
11+
# Table of Contents
12+
13+
- [Introduction](#Introduction)
14+
- [Step 1: Prerequisites](#Prerequisites)
15+
- [Step 2: Prepare your Device](#PrepareDevice)
16+
- [Step 3: Build and Run the Sample](#Build)
17+
18+
<a name="Introduction"></a>
19+
# Introduction
20+
21+
**About this document**
22+
23+
This document describes how to connect A610 device running Windows 10 IoT Enterprise with Azure IoT SDK. This multi-step process includes:
24+
- Configuring Azure IoT Hub
25+
- Registering your IoT device
26+
- Build and deploy Azure IoT SDK on device
27+
28+
<a name="Prerequisites"></a>
29+
# Step 1: Prerequisites
30+
31+
You should have the following items ready before beginning the process:
32+
33+
- [Prepare your development environment][setup-devbox-windows]
34+
- [Setup your IoT hub][lnk-setup-iot-hub]
35+
- [Provision your device and get its credentials][lnk-manage-iot-hub]
36+
- A610 device.
37+
- USB Keyboard/Mouse, and the Internet connection.
38+
39+
<a name="PrepareDevice"></a>
40+
# Step 2: Prepare your Device
41+
42+
- Connect the power adapter, USB Keyboard/Mouse with A610.
43+
- Press the power button on the back of the device.
44+
- Wait until the operating system is ready.
45+
46+
<a name="Build"></a>
47+
# Step 3: Build and Run the sample
48+
49+
- Download the [Azure IoT SDK](https://github.com/Azure/azure-iot-sdks) and the sample programs and save them to your local repository.
50+
- Start a new instance of Visual Studio 2015.
51+
- Open the **iothub\_csharp\_client.sln** solution in the `csharp\device` folder in your local copy of the repository.
52+
- In Visual Studio, from Solution Explorer, navigate to the **samples** folder.
53+
- In the **DeviceClientAmqpSample** project, open the ***Program.cs*** file.
54+
- Locate the following code in the file:
55+
56+
private const string DeviceConnectionString = "<replace>";
57+
58+
- Replace `<replace>` with the connection string for your device.
59+
- 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.
60+
- Use the **DeviceExplorer** utility to observe the messages IoT Hub receives from the **Device Client AMQP Sample** application.
61+
- Refer "Monitor device-to-cloud events" in [DeviceExplorer Usage document](https://github.com/Azure/azure-iot-sdk-csharp/blob/master/tools/DeviceExplorer/doc/how_to_use_device_explorer.md) to see the data your device is sending.
62+
- Refer "Send cloud-to-device messages" in [DeviceExplorer Usage document](https://github.com/Azure/azure-iot-sdk-csharp/blob/master/tools/DeviceExplorer/doc/how_to_use_device_explorer.md) for instructions on sending messages to device.
63+
64+
[setup-devbox-windows]: https://github.com/Azure/azure-iot-sdk-c/blob/master/doc/devbox_setup.md
65+
[lnk-setup-iot-hub]: ../setup_iothub.md
66+
[lnk-manage-iot-hub]: ../manage_iot_hub.md

0 commit comments

Comments
 (0)