platform | device | language |
---|---|---|
windows-iot-core |
nexcom-nise50 |
csharp |
About this document
This document describes how to connect NISE50 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:
- Computer with Git client installed and access to the azure-iot-sdks GitHub public repository.
- NISE50 device.
- Azure SDK for .NET
- Setup your IoT hub
- Provision your device and get its credentials
-
To create Windows IoT Core solutions, you will need to install Visual Studio 2015. You can install any edition of Visual Studio, including the free Community edition.
Make sure to select the Universal Windows App Development Tools, the component required for writing apps Windows 10:
First of all, you need to set up your device.
- Make Bootable USB with Windows 10 with following software
- Windows 10 32 bit
- WiNToBootic :
- Flash.ffu here
- Use WintoBootic to make bootable USB
- When you finish this bootable Device, copy Flash.FFU to this USB
- Install Win 10 Core on NIS50
- When system display "Install" button on screen, Press Shift+F10 to open terminal and using following command
This section walks you through building, deploying and validating the IoT Client SDK on your device running Windows 10 IoT Core operating system.
## 3.1 Connect the Device-
Connect the board to your network using an Ethernet cable. This step is required, as the sample depends on internet access.
-
Plug the device into your computer using a micro-USB cable.
-
Start a new instance of Visual Studio 2015. Open the iothub_csharp_client.sln solution (/azure-iot-sdks/csharp) from your local copy of the repository.
-
In Visual Studio, from Solution Explorer, navigate to the UWPSample(Universal Windows) project.
-
Locate the following code in the ConnectionStrings.cs file:
public const string DeviceConnectionString = "<replace>";
-
Replace the above placeholder with device connection string you obtained in Step 1 and save the changes.
-
Choose the right architecture (x86 or ARM, depending on your device) and set the debugging method to "Remote Machine":
-
To deploy the binaries on your device, right-click on the UWPSample project in the Solution Explorer, select Properties and navigate to the Debug tab:
Type in the name of your device. Make sure the "Use authentication" box is unchecked.
-
Build the solution.
-
In Visual Studio, from Solution Explorer, right-click the UWPSample(Universal Windows) project, click Debug −> Start new instance to build and run the sample.
-
See Manage IoT Hub to learn how to observe the messages IoT Hub receives from the application.
- See Manage IoT Hub to learn how to send cloud-to-device messages to the application.