@Beta public interface DeviceConnect extends HandlerBehaviour
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Boolean> |
connect()
Connects to the device, for example by opening the transport session that
will be later used to send control messages.
|
CompletableFuture<Boolean> |
disconnect()
Disconnects from the device, for example closing the transport session
previously opened.
|
boolean |
isConnected()
Returns true if a connection to the device is open, false otherwise.
|
handler, setHandler
CompletableFuture<Boolean> connect()
Calling multiple times this method while a connection to the device is open should result in a no-op.
boolean isConnected()
CompletableFuture<Boolean> disconnect()
Calling multiple times this method while a connection to the device is closed should result in a no-op.