The controller project is different from the previous projects in that it will be a client of the other three projects. It will still need to register itself (using the model name
LearningIoT-Controller) with the Thing Registry and use provisioning where applicable so that the provisioning server can be used to connect all the devices together by recommending who should befriend whom.
Once we have the
JID of the sensor, we can request for or subscribe to data from it using the
xmppSensorClient = new XmppSensorClient (xmppClient);
We initialize our relationship with the sensor by subscribing to the
Motion field values ...