Class SensorCoapController
- java.lang.Object
-
- io.patriot_framework.generator.controll.SensorCoapController
-
- All Implemented Interfaces:
CoapController
public class SensorCoapController extends Object implements CoapController
-
-
Constructor Summary
Constructors Constructor Description SensorCoapController(Sensor sensor)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
SensorCoapController
public SensorCoapController(Sensor sensor)
-
-
Method Detail
-
registerDevice
public void registerDevice()
Description copied from interface:CoapController
Creates resource endpoints for Device and adds them to CoapServer, which enables communication with Device.- Specified by:
registerDevice
in interfaceCoapController
-
removeDevice
public void removeDevice()
Description copied from interface:CoapController
Removes resource endpoints from CoapServer to deny any connection with Device via CoAP.- Specified by:
removeDevice
in interfaceCoapController
-
-