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

Instantiating the concentrator

Instantiating the concentrator is easy. We first add a reference to the Waher.Networking.XMPP.Concentrator.UWP NuGet package to our project (if we're not doing an UWP app, we add the Waher.Networking.XMPP.Concentrator NuGet). We then simply create the object, with a reference to the XMPP client object we use, and reference to all the root data sources we define. We will define only one data source, the MeteringTopology data source. It is the default data source for embedded nodes that can be used for metering applications or cyber-physical systems. Nodes are arranged in a network topology, defining how they are connected and how to communicate with them:

this.concentratorServer = new ConcentratorServer(this.xmppClient, ...

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