IOBluetoothNSStringToDeviceAddress(_:_:)
Convenience routine to take an NSString and turn it into a BluetoothDeviceAddress structure.
Declaration
func IOBluetoothNSStringToDeviceAddress(_ inNameString: String!, _ outDeviceAddress: UnsafeMutablePointer<BluetoothDeviceAddress>!) -> IOReturnParameters
- inNameString:
Ptr to an NSString that contains the data to turn into the device address.
- outDeviceAddress:
Ptr to an address structure that will be returned.
Return Value
Returns success (0) or failure code.
Discussion
Pass in most types of strings, such as “001122334455” or “00-11-22-33-44-55” and the conversion should be successful. Also, you should have 2 characters per byte for the conversion to work properly.
See Also
Miscellaneous
IOBluetoothFindNumberOfRegistryEntriesOfClassName(_:)IOBluetoothGetUniqueFileNameAndPath(_:_:)IOBluetoothIsFileAppleDesignatedPIMData(_:)IOBluetoothNSStringFromDeviceAddress(_:)IOBluetoothNumberOfAvailableHIDDevices()IOBluetoothNumberOfKeyboardHIDDevices()IOBluetoothNumberOfPointingHIDDevices()IOBluetoothNumberOfTabletHIDDevices()