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

Controlling node hierarchy

In the previous chapter, we created a static hierarchy of nodes. The IoT Gateway supports a dynamic hierarchy. While the concentrator infrastructure in the gateway performs most of the tasks required to manage your nodes, you need to provide some basic information that the gateway cannot guess. INode defines methods that allow the gateway to understand which node classes can be added where. It asks all available node classes, which it fetches from the inventory, and asks them who can be added to whom, and which nodes accept which nodes as children. If the response is positive to both these questions, the corresponding child type can be added to the corresponding parent type.

Method

Description

AcceptsChildAsync ...

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