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, ...

Get Mastering Internet of Things now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.