IOBluetoothDeviceSearchDeviceAttributes

Structure used to search for particular devices.

Declaration

struct IOBluetoothDeviceSearchDeviceAttributes {
   BluetoothDeviceAddress address; // 00 08 22 44 AB 56, etc.
   BluetoothDeviceName name; // "Al Yankovic's Phone", etc.
   BluetoothServiceClassMajor serviceClassMajor; // Networking, Rendering, etc.
   BluetoothDeviceClassMajor deviceClassMajor; // Computer, Phone, Audio, etc.
   BluetoothDeviceClassMinor deviceClassMinor; // Desktop, cordless, headset, etc.
};

Overview

Make sure you specify all fields! If you do not set deviceClassMajor for example, and the value is 0, that is mapped to kBluetoothDeviceClassMajorMiscellaneous, which is probably not what you want. To search for all device types, you must pass kBluetoothDeviceClassMajorAny and its relatives.

See Also