Platforms to show: All Mac Windows Linux Cross-Platform
WindowsBlueToothLEMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Bluetooth | MBS Bluetooth Plugin | 18.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | All |
- event ChangeEvent(ChangedAttributeHandle as Integer, CharacteristicValue as MemoryBlock)
- 4 properties
- property Handle as Integer
- property LastError as Integer
- property LastErrorMessage as String
- property Path as String
- 13 methods
- method AbortReliableWrite(ReliableWriteContextID as UInt64)
- method BeginReliableWrite as UInt64
- method Characteristics(ParentService as WindowsBlueToothLEServiceMBS, Flags as Integer = 0) as WindowsBlueToothLECharacteristicMBS()
- method Constructor(DevicePath as String)
- method Descriptors(Characteristic as WindowsBlueToothLECharacteristicMBS, Flags as Integer = 0) as WindowsBlueToothLEDescriptorMBS()
- method EndReliableWrite(ReliableWriteContextID as UInt64)
- method GetCharacteristicValue(Characteristic as WindowsBlueToothLECharacteristicMBS, Flags as Integer = 0) as MemoryBlock
- method GetDescriptorValue(Descriptor as WindowsBlueToothLEDescriptorMBS, Flags as Integer = 0) as WindowsBlueToothLEDescriptorValueMBS
- method IncludedServices(ParentService as WindowsBlueToothLEServiceMBS, Flags as Integer = 0) as WindowsBlueToothLEServiceMBS()
- method RegisterChangeEvent(Characteristics() as WindowsBlueToothLECharacteristicMBS)
- method Services(Flags as Integer = 0) as WindowsBlueToothLEServiceMBS()
- method SetCharacteristicValue(Characteristic as WindowsBlueToothLECharacteristicMBS, data as MemoryBlock, ReliableWriteContextID as UInt64, Flags as Integer = 0) as Boolean
- method SetDescriptorValue(Descriptor as WindowsBlueToothLEDescriptorMBS, DescriptorValue as WindowsBlueToothLEDescriptorValueMBS, Flags as Integer = 0) as Boolean
- 2 shared methods
- shared method Available as Boolean
- shared method DevicePathsForClassGUID(GUID as string) as String()
- 8 constants
Flags
Constant | Value | Description |
---|---|---|
kFlagConnectionAuthenticated | &h00000002 |
The client requests the data to be transmitted over an authenticated channel. |
kFlagConnectionEncrypted | &h00000001 |
The client requests the data to be transmitted over an encrypted channel. |
kFlagForceReadFromCache | &h00000008 |
The descriptor value is to be read from the cache (regardless of whether it is present in the cache or not). |
kFlagForceReadFromDevice | &h00000004 |
The descriptor value is to be read directly from the device. This overwrites the one in the cache if one is already present. |
kFlagNone | &h00000000 |
No flag. |
kFlagReturnAll | &h00000040 | |
kFlagSignedWrite | &h00000010 |
Signed write. Profile drivers must use with kFlagWriteWithoutResponse in order to produce signed write without a response. |
kFlagWriteWithoutResponse | &h00000020 |
Write without response. |
This class has no sub classes.
Some examples using this class:
- /Bluetooth/Windows Bluetooth/Bluetooth LE Heart Rate Win
- /Bluetooth/Windows Bluetooth/Windows BLE Devices
Blog Entries
Release notes
- Version 22.1
- Fixed buffer passing in SetCharacteristicValue method for WindowsBlueToothLEMBS class.
- Fixed potential problem that SetCharacteristicValue method could crash in WindowsBlueToothLEMBS class on low memory situation.
- Version 18.3
- Added WindowsBlueToothLEMBS and related classes for Bluetooth LE on Windows.
The items on this page are in the following plugins: MBS Bluetooth Plugin.
WindowsBluetoothLEManufacturerDataMBS - WindowsBlueToothLEServiceMBS