How can I go about getting a human readable device type from a IOBluetoothDevice object? I see there is a classOfDevice property but it returns an int. I need a way to tell if the device is a phone or not.
How can I go about getting a human readable device type from a IOBluetoothDevice
Share
From what I found there is no built in function for this. The header file
BluetoothAssignedNumbers.h
listed all the codes and will let you figure things out. You’ll have to build your own ID -> string function.
I checked out the
remoteNameRequestand I may be doing something wrong but it did not return a human readable device class name for me, ie:Phone,Smartphone, etc.