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 the device

Now that we have the metadata information we require for the device, it's an easy task to register it with the Thing Registry. We simply call the RegisterThing method on the thing registry client and monitor the success of the operation in the result.

The first parameter in the RegisterThing() method call is a Boolean parameter that lets the registry know if the thing is self-owned or not. A device that is self-owned makes its own security decisions. For now, we will work with self-owned devices, so we set this parameter to true. In the next chapter, we will introduce the concept of provisioning, where the owner of a device can control who can access the device and do what with it:

private void RegisterDevice(MetaDataTag[] ...

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