Class DeviceObserver
java.lang.Object
org.openremote.agent.protocol.tradfri.device.Observer
org.openremote.agent.protocol.tradfri.device.DeviceObserver
- All Implemented Interfaces:
org.eclipse.californium.core.CoapHandler
The class that observes a device to automagically detect changes
-
Constructor Summary
ConstructorsConstructorDescriptionDeviceObserver(Device device, CoapClient coapClient) Construct the DeviceObserver class -
Method Summary
Modifier and TypeMethodDescriptionvoidcallEventHandlers(String payload) Handles a new response from the CoAP client and calls the appropriate event handlers for the device
-
Constructor Details
-
DeviceObserver
Construct the DeviceObserver class- Parameters:
device- The device to observecoapClient- A CoAP client that can be used to communicate with the device using the IKEA TRÃ…DFRI gateway
-
-
Method Details
-
callEventHandlers
Handles a new response from the CoAP client and calls the appropriate event handlers for the device- Specified by:
callEventHandlersin classObserver- Parameters:
payload- The payload of the response to the CoAP request
-