Platforms to show: All Mac Windows Linux Cross-Platform
IOBluetoothDeviceMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Bluetooth | MBS Bluetooth Plugin | 18.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
An IOBluetoothDevice object may exist independent of the existence of a baseband connection with the target device. Using this object, a client can request creation and destruction of baseband connections, and request the opening of L2CAP and RFCOMM channels on the remote device. Many of the other APIs in the IOBluetooth framework will return this object, or it's C counterpart (IOBluetoothDeviceRef).
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 3 events
- event connectionCompleted(status as integer)
- event remoteNameRequestCompleted(status as integer)
- event SDPQueryCompleted(status as integer)
- 29 properties
- property addressString as String
- property classOfDevice as Integer
- property ClockOffset as Integer
- property deviceClassMajor as Integer
- property deviceClassMinor as Integer
- property EncryptionMode as Integer
- property Handle as Integer
- property isConnected as Boolean
- property isFavorite as Boolean
- property isIncoming as Boolean
- property isPaired as Boolean
- property Lasterror as Integer
- property LastInquiryUpdate as Date
- property LastInquiryUpdateDateTime as DateTime
- property lastNameUpdate as Date
- property lastNameUpdateDateTime as DateTime
- property LastServicesUpdate as Date
- property LastServicesUpdateDateTime as DateTime
- property LinkType as Integer
- property name as String
- property nameOrAddress as String
- property PageScanMode as Integer
- property PageScanPeriodMode as Integer
- property PageScanRepetitionMode as Integer
- property rawRSSI as Integer
- property RecentAccessDate as Date
- property RecentAccessDateTime as DateTime
- property RSSI as Integer
- property serviceClassMajor as Integer
- 16 methods
- method addToFavorites
- method closeConnection
- method Constructor Private
- method Destructor
- method openConnection
- method openConnectionAsync
- method openConnectionAsync(timeout as integer, authenticationRequired as boolean)
- method performSDPQuery
- method remoteNameRequest
- method remoteNameRequest(pageTimeoutValue as Integer)
- method removeFromFavorites
- method requestAuthentication
- method SendL2CAPEchoRequest(Data as MemoryBlock)
- method ServiceRecordForUUID(sdpUUID as IOBluetoothSDPUUIDMBS) as IOBluetoothSDPServiceRecordMBS
- method services as IOBluetoothSDPServiceRecordMBS()
- method setSupervisionTimeout(timeout as integer)
- 4 shared methods
- shared method deviceWithAddressString(Address as String) as IOBluetoothDeviceMBS
- shared method favoriteDevices as IOBluetoothDeviceMBS()
- shared method pairedDevices as IOBluetoothDeviceMBS()
- shared method recentDevices(numDevices as Integer = 0) as IOBluetoothDeviceMBS()
- 17 constants
Link Types
Constant | Value | Description |
---|---|---|
kBluetoothACLConnection | 1 |
ACL Connection |
kBluetoothESCOConnection | 2 |
ESCO Connection |
kBluetoothLinkTypeNone | 255 |
None set |
kBluetoothSCOConnection | 0 |
SCO Connection |
Bluetooth Page Scan Modes
Constant | Value | Description |
---|---|---|
kBluetoothPageScanModeMandatory | 0 |
Mandatory |
kBluetoothPageScanModeOptional1 | 1 |
Optional 1 |
kBluetoothPageScanModeOptional2 | 2 |
Optional 2 |
kBluetoothPageScanModeOptional3 | 3 |
Optional 3 |
Bluetooth Page Scan Period Modes
Constant | Value | Description |
---|---|---|
kBluetoothPageScanPeriodModeP0 | 0 |
P0 |
kBluetoothPageScanPeriodModeP1 | 1 |
P1 |
kBluetoothPageScanPeriodModeP2 | 2 |
P2 |
Bluetooth Page Scan Repetition Modes
Constant | Value | Description |
---|---|---|
kBluetoothPageScanRepetitionModeR0 | 0 |
R0 |
kBluetoothPageScanRepetitionModeR1 | 1 |
R1 |
kBluetoothPageScanRepetitionModeR2 | 2 |
R2 |
Encryption Modes
Constant | Value | Description |
---|---|---|
kEncryptionDisabled | 0 |
Encryption Disabled |
kEncryptionForBothPointToPointAndBroadcastPackets | 2 |
Encryption for both point to point and broadcast packets. |
kEncryptionOnlyForPointToPointPackets | 1 |
Encryption only to point to point packets. |
This class has no sub classes.
Some methods using this class:
- IOBluetoothDeviceInquiryMBS.foundDevices as IOBluetoothDeviceMBS()
- IOBluetoothDeviceSelectorControllerMBS.Results as IOBluetoothDeviceMBS()
- IOBluetoothRFCOMMChannelMBS.openRFCOMMChannelAsync(device as IOBluetoothDeviceMBS, channelID as Integer) as Boolean
- IOBluetoothRFCOMMChannelMBS.openRFCOMMChannelSync(device as IOBluetoothDeviceMBS, channelID as Integer) as Boolean
- IOBluetoothSDPServiceRecordMBS.Constructor(dic as Dictionary, device as IOBluetoothDeviceMBS)
- IOBluetoothSDPServiceRecordMBS.withServiceDictionary(dic as Dictionary, device as IOBluetoothDeviceMBS) as IOBluetoothSDPServiceRecordMBS
Some properties using for this class:
- IOBluetoothRFCOMMChannelMBS.Device as IOBluetoothDeviceMBS
- IOBluetoothSDPServiceRecordMBS.Device as IOBluetoothDeviceMBS
Some events using this class:
- IOBluetoothDeviceInquiryMBS.DeviceFound(device as IOBluetoothDeviceMBS)
- IOBluetoothDeviceInquiryMBS.DeviceNameUpdated(device as IOBluetoothDeviceMBS, devicesRemaining as Integer)
- IOBluetoothHostControllerMBS.readLinkQualityForDeviceCompleted(device as IOBluetoothDeviceMBS, HCILinkQuality as Integer, error as Integer)
- IOBluetoothHostControllerMBS.readRSSIForDeviceCompleted(device as IOBluetoothDeviceMBS, HCIRSSIValue as Integer, error as Integer)
Some examples using this class:
- /Bluetooth/Mac Bluetooth/Mac Bluetooth Connection
- /Bluetooth/Mac Bluetooth/Mac Bluetooth Devices
- /Bluetooth/Mac Bluetooth/Mac Bluetooth Dialogs
Blog Entries
Release notes
- Version 18.3
- Added Bluetooth classes for Mac: IOBluetoothServiceBrowserControllerMBS, IOBluetoothSDPUUIDMBS, IOBluetoothSDPServiceRecordMBS, IOBluetoothSDPServiceAttributeMBS, IOBluetoothSDPDataElementMBS, IOBluetoothRFCOMMChannelMBS, IOBluetoothHostControllerMBS, IOBluetoothDeviceSelectorControllerMBS, IOBluetoothDeviceMBS and IOBluetoothDeviceInquiryMBS.
The items on this page are in the following plugins: MBS Bluetooth Plugin.
IOBluetoothDeviceInquiryMBS - IOBluetoothDeviceSelectorControllerMBS