aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTeddy Wing2019-03-24 19:10:40 +0100
committerTeddy Wing2019-03-24 19:10:40 +0100
commit28a6eafbf3ba46abe4560cecd4696457f5615137 (patch)
tree48b208557601179b52d16f2a3c75e5c0755428e3 /lib
parentc484af9d5844fa29be77d098542a74e313dad4c6 (diff)
downloadDomeKey-28a6eafbf3ba46abe4560cecd4696457f5615137.tar.bz2
HeadphoneKeyEventBluetooth: Determine Bluetooth device class
Learn how to find out if a device is a pair of headphones with remote control capabilities. This produces the following output: 2019-03-24 19:07:46.265 DomeKey[59146:1474861] Device class major: 4 2019-03-24 19:07:46.266 DomeKey[59146:1474861] Device class minor: 6 2019-03-24 19:07:46.266 DomeKey[59146:1474861] Class of device: 2360344 2019-03-24 19:07:46.266 DomeKey[59146:1474861] Service class major: 288 2019-03-24 19:07:46.266 DomeKey[59146:1474861] Major audio 2019-03-24 19:07:46.266 DomeKey[59146:1474861] Minor audio 2019-03-24 19:07:46.266 DomeKey[59146:1474861] Is remote controller Other potentially useful but unused constants are: kBluetoothSDPUUID16ServiceClassAVRemoteControlTarget kBluetoothSDPUUID16ServiceClassAVRemoteControl kBluetoothSDPUUID16ServiceClassAVRemoteControlController in IOBluetooth's `BluetoothAssignedNumbers.h`. From this, we should be able to figure out if a device is a remote control-capable pair of headphones.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions