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

Registering our embedded nodes

We are now almost ready to try our concentrator with our controller application. For the controller to find our sensor and actuator, we need to register them in the Thing Registry. To do this, we need to make two different registrations. We create a registration method that takes generic metadata for the concentrator, and then add node-specific information for each node:

private void RegisterDevice(MetaDataTag[] MetaInfo) { Log.Informational("Registering device."); MetaDataTag[] SensorTags = this.GetSensorMetaInfo(MetaInfo); MetaDataTag[] ActuatorTags = this.GetActuatorMetaInfo( MetaInfo); this.registryClient.RegisterThing(true, ActuatorNode.NodeID, MeteringTopology.ID, ActuatorTags, this.RegistrationResponse, ...

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