Class LinuxBluetoothDevice
java.lang.Object
oshi.hardware.common.AbstractBluetoothDevice
oshi.hardware.common.platform.linux.LinuxBluetoothDevice
- All Implemented Interfaces:
BluetoothDevice
Linux Bluetooth device enumeration via BlueZ filesystem paths.
Adapters are discovered from /sys/class/bluetooth/hciX. Paired devices are read from
/var/lib/bluetooth/<adapter-mac>/<device-mac>/info.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<BluetoothDevice> Gets Bluetooth devices known to the system.Methods inherited from class AbstractBluetoothDevice
getAdapterName, getAddress, getBatteryLevel, getMajorDeviceClass, getName, isConnected, isPaired, parseMajorDeviceClass, toString
-
Method Details
-
getBluetoothDevices
Gets Bluetooth devices known to the system.- Returns:
- a list of
BluetoothDeviceobjects
-