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

Referencing embedded sensor nodes

Referencing embedded nodes is done through overloading of the methods we are already familiar with. The SensorClient class has two main methods for obtaining sensor data: the RequestReadout and Subscribe methods. The first returns data immediately, the second when new data is made available. Both methods have overloaded versions that enable you to provide a reference to one or more ThingReference objects. Each ThingReference object (class defined in Waher.Things) contains a NodeId, SourceId, and a Partition property. By adding such references to the request, you direct the request to the corresponding embedded node instead of to the concentrator itself.

You can explicitly reference the concentrator itself, ...

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