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

public class DeviceObserver extends Observer
The class that observes a device to automagically detect changes
  • Constructor Details

    • DeviceObserver

      public DeviceObserver(Device device, CoapClient coapClient)
      Construct the DeviceObserver class
      Parameters:
      device - The device to observe
      coapClient - A CoAP client that can be used to communicate with the device using the IKEA TRÅDFRI gateway
  • Method Details

    • callEventHandlers

      public void callEventHandlers(String payload)
      Handles a new response from the CoAP client and calls the appropriate event handlers for the device
      Specified by:
      callEventHandlers in class Observer
      Parameters:
      payload - The payload of the response to the CoAP request