Platforms to show: All Mac Windows Linux Cross-Platform
WindowsBluetoothLEDeviceMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Bluetooth | MBS WinFrameworks Plugin | 22.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
Requires Windows 10 (introduced in 10.0.10240.0)
- 7 events
- event ConnectionStatusChanged
- event GattServicesChanged
- event GetGattServicesCompleted(asyncStatus as Integer, Result as WindowsGattDeviceServicesResultMBS)
- event NameChanged
- event PairAsyncCompleted(asyncStatus as Integer, PairingStatus as Integer, ProtectionLevelUsed as Integer)
- event RequestAccessCompleted(asyncStatus as Integer, DeviceAccessStatus as Integer)
- event UnpairAsyncCompleted(asyncStatus as Integer, UnpairingStatus as Integer)
- 9 properties
- property Appearance as WindowsBluetoothLEAppearanceMBS
- property BluetoothAddress as UInt64
- property BluetoothAddressType as Integer
- property BluetoothDeviceId as WindowsBluetoothDeviceIdMBS
- property ConnectionStatus as Integer
- property Handle as Integer
- property Name as String
- property Pairing as WindowsDeviceInformationPairingMBS
- property WasSecureConnectionUsedForPairing as Boolean
- 10 methods
- method Close
- method Constructor Private
- method Constructor(other as WindowsBluetoothLEDeviceMBS)
- method Destructor
- method GetGattService(serviceUUID as String) as WindowsGattDeviceServiceMBS
- method GetGattServicesAsync
- method GetGattServicesAsync(BluetoothCacheMode as Integer)
- method GetGattServicesForUuidAsync(serviceUuid as String)
- method GetGattServicesForUuidAsync(serviceUuid as String, BluetoothCacheMode as Integer)
- method RequestAccessAsync
- 8 shared methods
- shared method FromBluetoothAddress(bluetoothAddress as UInt64) as WindowsBluetoothLEDeviceMBS
- shared method FromBluetoothAddress(bluetoothAddress as UInt64, BluetoothAddressType as Integer) as WindowsBluetoothLEDeviceMBS
- shared method FromBluetoothAddressAsync(bluetoothAddress as UInt64, BluetoothAddressType as Integer, delegateHandler as DeviceFromBluetoothAddressAsyncCompletedMBS)
- shared method FromBluetoothAddressAsync(bluetoothAddress as UInt64, delegateHandler as DeviceFromBluetoothAddressAsyncCompletedMBS)
- shared method FromId(Id as String) as WindowsBluetoothLEDeviceMBS
- shared method FromIdAsync(Id as String, delegateHandler as DeviceFromIdAsyncCompletedMBS)
- shared method GetDeviceSelector as String
- shared method GetDeviceSelectorFromAppearance(Appearance as WindowsBluetoothLEAppearanceMBS) as String
- 2 delegates
- delegate DeviceFromBluetoothAddressAsyncCompletedMBS(AsyncStatus as Integer, Device as WindowsBluetoothLEDeviceMBS)
- delegate DeviceFromIdAsyncCompletedMBS(AsyncStatus as Integer, Device as WindowsBluetoothLEDeviceMBS)
- 13 constants
Address Type
Constant | Value | Description |
---|---|---|
AddressTypePublic | 0 |
Public address. |
AddressTypeRandom | 1 |
Random address. |
AddressTypeUnspecified | 2 |
Unspecified address. |
Asynchronous Status
Constant | Value | Description |
---|---|---|
AsyncStatusCanceled | 2 |
The operation was canceled. |
AsyncStatusCompleted | 1 |
The operation has completed. |
AsyncStatusError | 3 |
The operation has encountered an error. |
AsyncStatusStarted | 0 |
The operation has started. |
ConnectionStatus
Constant | Value | Description |
---|---|---|
ConnectionStatusConnected | 1 |
The device is connected. |
ConnectionStatusDisconnected | 0 |
The device is disconnected. |
Device Access Status
Constant | Value | Description |
---|---|---|
DeviceAccessStatusAllowed | 1 |
Access to the device is allowed. |
DeviceAccessStatusDeniedBySystem | 3 |
Access to the device has been disallowed by the system. |
DeviceAccessStatusDeniedByUser | 2 |
Access to the device has been disallowed by the user. |
DeviceAccessStatusUnspecified | 0 |
The device access is not specified. |
This class has no sub classes.
Some properties using for this class:
- WindowsDeviceInformationPairingMBS.Device as WindowsBluetoothLEDeviceMBS
- WindowsGattDeviceServiceMBS.Device as WindowsBluetoothLEDeviceMBS
Some examples using this class:
Blog Entries
- News from the MBS Xojo Plugins Version 24.0
- MBS Xojo Plugins, version 23.6pr3
- News from the MBS Xojo Plugins Version 23.3
- MonkeyBread Software Releases the MBS Xojo Plugins in version 23.0
- The Top 10 from the MBS Xojo Plugins in 2022
- Bluetooth LE on Windows
- News from the MBS Xojo Plugins Version 22.5
- MonkeyBread Software Releases the MBS Xojo Plugins in version 22.5
- News from the MBS Xojo Plugins Version 22.3
- News from the MBS Xojo Plugins Version 22.2
Xojo Developer Magazine
Release notes
- Version 24.0
- Added PairAsyncCompleted and UnpairAsyncCompleted events for WindowsBluetoothLEDeviceMBS class to catch the events from WindowsDeviceInformationPairingMBS easier.
- Version 23.3
- Added FromBluetoothAddress and FromId functions to WindowsBluetoothLEDeviceMBS class.
- Version 23.0
- Added FromIdAsync shared method to WindowsBluetoothLEDeviceMBS and WindowsGattDeviceServiceMBS classes.
- Version 22.5
- Added events for WindowsBluetoothLEDeviceMBS class.
- Added GetGattServicesAsync and GetGattServicesForUuidAsync methods to WindowsBluetoothLEDeviceMBS class.
- Added GetGattServicesCompleted event to WindowsBluetoothLEDeviceMBS class.
- Version 22.3
- Added more methods for WindowsGattDeviceServiceMBS and WindowsBluetoothLEDeviceMBS classes.
The items on this page are in the following plugins: MBS WinFrameworks Plugin.
WindowsBlueToothLEDescriptorValueMBS - WindowsBluetoothLEExceptionMBS