Like with the sensor project, adding the final interfaces for our actuator is a minor task. The device will register itself as
LearningIoT-Actuator instead of
LearningIoT-Sensor for instance. Adding a sensor server interface to the actuator is done in more or less the same way as described for the sensor, except that the names and types of the fields and momentary values are different. In this section, we will discuss the actuator-specific interfaces that need to be considered.
The contracts we will use for the actuator are as follows:
xmppInteroperabilityServer = new XmppInteroperabilityServer ( xmppClient, "XMPP.IoT.Actuator.DigitalOutputs", "XMPP.IoT.Security.Alarm", "Clayster.LearningIoT.Actuator.DO1-8"); ...