Skip to content

Commit 9e72717

Browse files
author
ashokkhurana
authored
Merge pull request Azure#146 from v-limliu/master
add winmate-r15ib3s-pcc3-poe
2 parents 64afe74 + 1668cc1 commit 9e72717

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
platform: windows 7
3+
device: winmate-r15ib3s-pcc3-poe
4+
language: csharp
5+
---
6+
7+
Run a simple Csharp sample on Winmate-R15IB3S-PCC3-PoE device running Windows 7
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 Winmate-R15IB3S-PCC3-PoE device running Windows 7 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+
- Winmate-R15IB3S-PCC3-PoE
37+
38+
<a name="PrepareDevice"></a>
39+
# Step 2: Prepare your Device
40+
41+
- Follow the instructions from [device website](http://www.winmate.com/PanelPc/PPcSpec.asp?Prod=03_1291&typeid=B0108090301).
42+
43+
<a name="Build"></a>
44+
# Step 3: Build and Run the sample
45+
46+
- Download the [Azure IoT SDK](https://github.com/azure/azure-iot-sdk-csharp) and the sample programs and save them to your local repository.
47+
- Start a new instance of Visual Studio 2015.
48+
- Open the **iothub_csharp_client.sln** solution in the `csharp\device` folder in your local copy of the repository.
49+
- In Visual Studio, from Solution Explorer, navigate to the **samples** folder.
50+
- In the **DeviceClientAmqpSample** project, open the ***Program.cs*** file.
51+
- Locate the following code in the file:
52+
53+
private const string DeviceConnectionString = "<replace>";
54+
55+
- Replace `<replace>` with the connection string for your device.
56+
- 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.
57+
- Use the **DeviceExplorer** utility to observe the messages IoT Hub receives from the **Device Client AMQP Sample** application.
58+
- 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.
59+
- 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.
60+
61+
[setup-devbox-windows]: https://github.com/Azure/azure-iot-sdks/blob/master/c/doc/devbox_setup.md
62+
[lnk-setup-iot-hub]: ../../setup_iothub.md
63+
[lnk-manage-iot-hub]: ../../manage_iot_hub.md

0 commit comments

Comments
 (0)