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

Creating an XMPP control server

To make our parameters available, we create a ControlServer object in our actuator project. We need a variable to reference our server:

private ControlServer controlServer = null; 

In our AttachFeatures method, we create our instance of the control server. We can either choose to provide a set of control parameters in the constructor of the control server, or override the OnGetControlParameters event and provide a dynamic set each time a set is requested. The first method is simplest, if we're building a simple actuator, as we do in our example. If we want to provide different control parameter sets for different nodes in the device, we must choose the second option.

The control server object does not have ...

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