How to do it...

In this recipe, we will use the temperature sensor to send data to the IoT Hub using Raspberry Pi:

  1. Create a C# blank Universal Windows Platform (UWP) app from Visual Studio:
  1. Add a reference for Windows IoT extension for the UWP:
  1. Add the NuGet packages for Microsoft.Azure.Devices.Client, Newtonsoft.JSON, Microsoft.Netcore.Universalwindowsplatform packages as shown in following screenshot:
  1. We will be using a C++ Universal ...

Get Azure IoT Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.