March 2018
Beginner to intermediate
410 pages
10h 40m
English
The first step is to find the thing registry. We assume that it is made available as a component of the same broker that we are connected to. To avoid searching the broker every time the device is restarted, we first check if we already know the address of the registry:
private async Task RegisterDevice()
{
string ThingRegistryJid = await RuntimeSettings.GetAsync(
"ThingRegistry.JID", string.Empty);
if (!string.IsNullOrEmpty(ThingRegistryJid))
await this.RegisterDevice(ThingRegistryJid);
else
{
Log.Informational("Searching for Thing Registry.");
Our search begins by looping through all items on the broker. These items publish a set of features. These items and features are accessed through Service Discovery ...
Read now
Unlock full access