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