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