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.
Note
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 |
| XMPP client library. |
| XMPP IoT sensor data plugin. Added to both projects. |
| XMPP IoT chat plugin. |
| XMPP IoT control plugin. Only added to the |
| Added to both projects. We will discuss this module in a later chapter. |