We now have sufficient information to begin using XMPP in our projects. To do this, we create two new projects, which we will call SensorXmpp and ActuatorXmpp, copying the corresponding code from the Sensor and Actuator projects as we have done earlier. As with the previous chapters, we use the same hardware.
For reference, the projects are available on GitHub at https://github.com/PeterWaher/MIoT.
We also add a series of NuGet packages to our projects:
NuGet |
Description |
Waher.Networking.XMPP.UWP |
XMPP client library. |
Waher.Networking.XMPP.Sensor.UWP |
XMPP IoT sensor data plugin. Added to both projects. |
Waher.Networking.XMPP.Chat.UWP |
XMPP IoT chat plugin. |
Waher.Networking.XMPP.Control.UWP |
XMPP IoT control plugin. Only added to the ActuatorXmpp project. |
Waher.Networking.XMPP.Provisioning.UWP |
Added to both projects... |