Class SerialService

All Implemented Interfaces:
CtxEventListener, ContextHandleAware, HandleAware, Ready, ReadyListener

public final class SerialService extends AbstractService
Service that manages serial devices.
Since:
1.0
Version:
2023-09-18
  • Method Details

    • restartMatching

      public void restartMatching()
      Restart the matching process for all pending devices.
    • claimDevice

      public void claimDevice(SerialDevice device)
      Ask SerialService to claim ownership of the device. This is useful when dealing with multi-port serial devices that are part of the same usb device. A SerialAdapterFactory can find the first port, call this method to claim it, keep a reference to it, and then when the other port appears, return an adapter. This will result in both devices being owned by SerialService .