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

Finding friends in the roster

After a successful registration or update of an existing registration in the Thing Registry, the controller calls the FindFriends method with the metadata used in the registration:

this.FindFriends(MetaInfo); 

The FindFriends method will connect the controller to the corresponding sensor and actuator in its vicinity. The first step is to check that such connections are not already defined. We will use the roster of our XMPP connection, that is, our list of "friends," as the knowledge base of our contacts. To each contact on our roster, we can assign groups. Groups are just string tags we annotate each contact with. We can use this array of groups to describe our contacts. These descriptions are stored on the ...

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