March 2018
Beginner to intermediate
410 pages
10h 40m
English
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, ...Read now
Unlock full access