Interface UsbSerialDiscoveryParticipant
@NonNullByDefault
public interface UsbSerialDiscoveryParticipant
A
UsbSerialDiscoveryParticipant
that is registered as a component is picked up by the
UsbSerialDiscoveryService
and can thus contribute DiscoveryResult
s from
scans for USB devices with an associated serial port.- Author:
- Henning Sudbrock - Initial contribution
-
Method Summary
Modifier and TypeMethodDescription@Nullable DiscoveryResult
createResult
(UsbSerialDeviceInformation deviceInformation) Creates a discovery result for a USB device with corresponding serial port.Defines the list of thing types that this participant can identify.@Nullable ThingUID
getThingUID
(UsbSerialDeviceInformation deviceInformation) Returns the thing UID for a USB device with corresponding serial port.
-
Method Details
-
getSupportedThingTypeUIDs
Set<ThingTypeUID> getSupportedThingTypeUIDs()Defines the list of thing types that this participant can identify.- Returns:
- a set of thing type UIDs for which results can be created
-
createResult
Creates a discovery result for a USB device with corresponding serial port.- Parameters:
deviceInformation
- information about the USB device and the corresponding serial port- Returns:
- the according discovery result or
null
if the device is not supported by this participant
-
getThingUID
Returns the thing UID for a USB device with corresponding serial port.- Parameters:
deviceInformation
- information about the USB device and the corresponding serial port- Returns:
- a thing UID or
null
if the device is not supported by this participant
-