# Companion

object Companion

## Functions

findByAdvertisingName
Link copied to clipboard
fun findByAdvertisingName(name: String?): DeviceType

Helper method to find the DeviceType enum that corresponds to the name found during device advertisement. If an unknown name is provided, DeviceType.UNKNOWN is returned.

findByByte
Link copied to clipboard
fun findByByte(byte: Byte): DeviceType

Helper method to find the DeviceType enum that corresponds to a byte value. If an unknown byte value is provided, DeviceType.UNKNOWN is returned.

findByInt
Link copied to clipboard
fun findByInt(value: Int): DeviceType

Helper method to find the DeviceType enum that corresponds to an integer value. If an unknown integer value is provided, DeviceType.UNKNOWN is returned.

findByShortName
Link copied to clipboard
fun findByShortName(name: String?): DeviceType

Helper method to find the DeviceType enum that corresponds to the device short name. If an unknown name is provided, DeviceType.UNKNOWN is returned.

findByUsbPid
Link copied to clipboard
fun findByUsbPid(device: UsbDevice): DeviceType

Helper method to find the DeviceType enum that corresponds to the USB VID and PID of a USB device. If an unknown VID and PID combination is provided, DeviceType.UNKNOWN is returned