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

Supporting embedded sensor nodes

Sensors instantiate the SensorServer class to publish sensor data. There is no need to instantiate one such class for each embedded sensor node. Instead, only the concentrator needs to instantiate it. Incoming requests raise the OnExecuteReadoutRequest event. The event argument class contains a Nodes property that contains the nodes referenced in the request. The event handler must then either redirect the request to the corresponding embedded sensor node, or handle the embedded nodes internally in the event handler.

During readout, a collection of Field or ThingError objects is generated. Each one contains a reference to the node from where the data originated. If the device is not a concentrator, a reference ...

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