In the previous chapters, we've used different classes from different NuGet packages to perform different tasks on the XMPP network. Depending on whether we've implemented a sensor, an actuator, a controller, or a combination of these, different classes have been used. The following table gives an overview of the different classes that we have used, together with their most important methods and events:
Class |
Methods |
Events |
SensorClient |
RequestReadout() Subscribe() |
|
SensorServer |
OnExecuteReadoutRequest |
|
ControlClient |
Set() GetForm() CancelForm() |
|
ControlServer |
OnGetControlParameters |
|
ThingRegistryClient |
RegisterThing() UpdateThing() Mine() Remove() Unregister() Disown() Search() |
Claimed Removed Disowned |
ProvisioningClient |
GetToken() GetCertificate() IsFriend() CanRead() CanControl() IsFriendResponse() CanReadResponse*() CanControlResponse*() ClearDeviceCaches() ClearDeviceCache() GetDevices() DeleteDeviceRules() |
IsFriendQuestion CanReadQuestion CanControlQuestion |