platform | device | language |
---|---|---|
windows 10 iot core |
up-squared |
csharp |
- Introduction
- Step 1: Prerequisites
- Step 2: Prepare your Device
- Step 3: Build and Run the Sample
- Next Steps
About this document
This document describes how to connect UP-Squared device running Windows 10 IoT Core 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:
- Prepare your development environment
- Setup your IoT hub
- Provision your device and get its credentials
- UP-Squared device.
- Enter UP-Squared product page(http://www.aaeon.com/en/p/iot-gateway-maker-boards-up-squared) download manual and start UP-Squared follow the instructions and install the Windows 10 IoT Core 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
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.
-
Use the DeviceExplorer utility to observe the messages IoT Hub receives from the Device Client AMQP Sample application.
-
Refer "Monitor device-to-cloud events" in DeviceExplorer Usage document to see the data your device is sending.
-
Refer "Send cloud-to-device messages" in DeviceExplorer Usage document for instructions on sending messages to device.
-
Refer "Send cloud-to-device messages" in DeviceExplorer Usage document for instructions on sending messages to device.
You have now learned how to run a sample application that collects sensor data and sends it to your IoT hub. To explore how to store, analyze and visualize the data from this application in Azure using a variety of different services, please click on the following lessons:
- Manage cloud device messaging with iothub-explorer
- Save IoT Hub messages to Azure data storage
- Use Power BI to visualize real-time sensor data from Azure IoT Hub
- Use Azure Web Apps to visualize real-time sensor data from Azure IoT Hub
- Weather forecast using the sensor data from your IoT hub in Azure Machine Learning
- Remote monitoring and notifications with Logic Apps