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

Performing readout of a sensor

The last thing we need to do for our sensor node is to implement the StartReadout method, which will perform the actual readout. Its details conform to the sensor readout example in the SensorXmpp project:

public async void StartReadout(ISensorReadout Request) 
{ 
   try 
   { 
         Log.Informational("Performing readout.", this.LogId, 
               Request.Actor); 
         ... 
   } 
   catch (Exception ex) 
   { 
         Log.Critical(ex); 
   } 
}

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