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

Reconfiguring the controller

We do an identical test for the actuator. If we haven't been able to configure the actuator for a day, we assume the connection is no longer valid, so we invalidate it. The local Search variable is used to signal if we need a reconfiguration. If that is the case, we just re-register the controller with the thing registry again. That process will, in turn, trigger a new search, and find new devices:

   if (Search) 
         Task.Run(this.RegisterDevice); 
} 

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