Adding provisioning support to our devices
We are now ready to implement support for provisioning in our devices. We create two new projects, a SensorXmpp2 and an ActuatorXmpp2. We base these on the SensorXmpp and ActuatorXmpp projects, developed in the previous chapters. The Waher.Networking.XMPP.Provisioning namespace, already made available in these projects, contains a ProvisioningClient class which will do most of the work. It supports both the device and owner interfaces of provisioning.
Note
Provisioning interfaces are published by the IEEE IoT Harmonization working group, introduced in Chapter 9, Social Interaction with Your Devices Using XMPP.
Searching for a provisioning server
For our purposes, we start with the device set of interfaces for provisioning. We add a member variable that will hold our provisioning client to both our SensorXmpp2 and ActuatorXmpp2 projects:
private ProvisioningClient provisioningClient = null;
When we search the components made available by the server to...