O'Reilly logo

Mastering Internet of Things by Peter Waher

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Preparing our project

We create a new Universal Windows Platform application project, based on the Sensor project described in chapter 2. This time, we call it SensorMqtt. We use the same hardware setup and sensor code developed earlier. In this chapter, we will focus on how to publish the information we've sampled on the internet, and how to receive it. We begin by adding a new NuGet package, the Waher.Networking.MQTT.UWP package. This package contains a simple MQTT client we can use to communicate using the MQTT protocol. We also add the Waher.Runtime.Settings package introduced in the previous chapter.

For.NET standard, .NET Core, or traditional .NET Framework projects, you can use the Waher.Networking.MQTTNuGet instead. UWP apps use different ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required