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

Redirecting node requests

When the ConcentratorServer object is instantiated, it creates its own SensorServer and ControlServer instances. There is no need to instantiate these separately. When a request is received on these objects, it checks that the request is properly made, and that references, data sources and nodes exist, and are correctly defined.

If a sensor data request is received, for instance, the ConcentratorServer object checks that the node exists and that it implements the ISensor interface. If the IsReadable property is true, it proceeds by calling the StartReadout method, defined by ISensor, on the node. Similarly, if a control operation is received, the ConcentratorServer object checks that the node implements the IActuator ...

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