Interface CoapController

  • All Known Implementing Classes:
    ActuatorCoapController, SensorCoapController

    public interface CoapController
    The Constrained Application Protocol (CoAP) is a specialized web transfer protocol for use with constrained nodes and constrained (e.g., low-power, lossy) networks. See: https://tools.ietf.org/html/rfc7252 This interface offers methods to control and communicate with instance of Device. CoapController and Device should have one-to-one relationship, as class that implements this interface is responsible for creating and adding CoapResource to instance of CoapServer. Different Devices may offer access to different resources, therefore CoapController classes should offer diversity to support this behavior.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void registerDevice()
      Creates resource endpoints for Device and adds them to CoapServer, which enables communication with Device.
      void removeDevice()
      Removes resource endpoints from CoapServer to deny any connection with Device via CoAP.
    • Method Detail

      • registerDevice

        void registerDevice()
        Creates resource endpoints for Device and adds them to CoapServer, which enables communication with Device.
      • removeDevice

        void removeDevice()
        Removes resource endpoints from CoapServer to deny any connection with Device via CoAP.