This sample shows how to run and connect a Universal Windows Platform application to an Azure IoT Suite Remote Monitoring Preconfigured Solution. This sample is usefull to try or demonstrate Azure IoT Suite. Here are some links to learn more on Azure IoT Suite and Azure IoT Suite preconfigured solutions.
In order to run this sample you will need the following hardware:
You will need to setup your Windows 10 OS to developer mode.
For Developers Settingsand press enter.
Settingsand touch the Settings icon to enter the settings panel
In order to deploy an Azure IoT Suite precongigured solution, you need an Azure subscription. If you don't have one, you can easily create a free trial subscription. This article describes in details how to get started with Azure IoT Suite Remote Monitoring preconfigured solutions, but if you want the short version, see below. Once you have an Azure subscription, browse to http://www.azureiotsuite.com Once logged in using your Azure subscription credentials:
It will take several minutes to deploy all the services of the solution, in the meantime, you can get device application ready.
In order to run the device application on your PC, here are the few steps:
Clone or download the github repository (see links on top)
Open the solution AzureIoTSuiteUWPDevice\AzureIoTSuiteUWPDevice.sln in Visual Studio
Build and deploy:
At this point the Remote Monitoring solution should be deployed (if not, go get a coffee).
Important: we are not using the simulated devices that are automatically deployed as part of the remote monitoring solution. It is recommended to deactivate all the simulated devices from the Devices tab in the dashboard to prevent unecessary traffic and cost to the Azure subscription.
In order to connect your UWP application to your Azure IoT Suite instance (which by now should be deployed), you will need to create a unique ID for it in the Suite dashboard. Navigating the Remote Monitoring dahboard and creating a device ID is extensively described in the Getting Started with Azure IoT Suite preconfigured solutions article. Once you have created a new device ID, copy the Device ID, Host Name and Device Key from the IoT Suite into the UWP application.
The UWP device application is dead simple.