Platforms to show: All Mac Windows Linux Cross-Platform

Back to IOBluetoothDeviceMBS class.

IOBluetoothDeviceMBS.deviceWithAddressString(Address as String) as IOBluetoothDeviceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the IOBluetoothDevice object for the given BluetoothDeviceAddress.

Within a single application, there will be only one instance of IOBluetoothDevice for a given remote device address.
The string should be of the form xx:xx:xx:xx:xx:xx

Some examples using this method:

IOBluetoothDeviceMBS.favoriteDevices as IOBluetoothDeviceMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Gets an array of the user's favorite devices.

Returns an array of device objects representing the user's favorite devices. If the user has no favorites, nil is returned.

IOBluetoothDeviceMBS.pairedDevices as IOBluetoothDeviceMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Gets an array of all of the paired devices on the system.

Returns an array of device objects for all of the paired devices on the system. If there are no paired devices, nil is returned.

The paired devices are currently NOT stored per user, so this is all devices paired by any user.

IOBluetoothDeviceMBS.recentDevices(numDevices as Integer = 0) as IOBluetoothDeviceMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Bluetooth MBS Bluetooth Plugin 18.3 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Gets an array of recently used Bluetooth devices.

numDevices: The number of devices to return.

Returns an array of device objects recently used by the system. If no devices have been accessed, nil is returned.

The resulting array contains IOBluetoothDevice objects sorted in reverse chronological order. The most recently accessed devices are first. If the numDevices parameter is 0, all devices accessed by the system are returned. If numDevices is non-zero, only the most recent devices are returned.

NOTE: This method is only available in macOS 10.2.4 (Bluetooth v1.1) or later.

The items on this page are in the following plugins: MBS Bluetooth Plugin.


The biggest plugin in space...