Platforms to show: All Mac Windows Linux Cross-Platform
CBDescriptorMBS class
Super class: CBAttributeMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
CBDescriptor and it subclass CBMutableDescriptor represent a descriptor of a peripheral’s characteristic. CBDescriptor objects in particular represent the descriptors of a remote peripheral’s characteristic (remote peripheral devices are represented by CBPeripheral objects). Descriptors provide further information about a characteristic’s value. For example, they may describe the value in human-readable form and describe how the value should be formatted for presentation purposes. Characteristic descriptors also indicate whether a characteristic’s value is configured on a server (a peripheral) to indicate or notify a client (a central) when the value of the characteristic changes.
There are six predefined types of descriptors that—along with their corresponding value types—are detailed in CBUUID. CBDescriptor lists the predefined types of descriptors and the CBUUIDMBS constants that are used to represent them.
Descriptor type | Descriptor constant |
Characteristic extended properties | CBUUIDMBS.CBUUIDCharacteristicExtendedPropertiesString |
Characteristic user description | CBUUIDMBS.CBUUIDCharacteristicUserDescriptionString |
Client characteristic configuration | CBUUIDMBS.CBUUIDClientCharacteristicConfigurationString |
Server characteristic configuration | CBUUIDMBS.CBUUIDServerCharacteristicConfigurationString |
Characteristic format | CBUUIDMBS.CBUUIDCharacteristicFormatString |
Characteristic aggregate format | CBUUIDMBS.CBUUIDCharacteristicAggregateFormatString |
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 2 properties
- property Characteristic as CBCharacteristicMBS
- property Value as Variant
- method Constructor Private
- shared method Available as boolean
Super class CBAttributeMBS
- 2 properties
- method Constructor Private
- shared method Available as boolean
Sub classes:
Some methods using this class:
- CBCharacteristicMBS.descriptors as CBDescriptorMBS()
- CBMutableCharacteristicMBS.setDescriptors(Descriptors() as CBDescriptorMBS)
- CBMutableCharacteristicMBS.subscribedCentrals as CBDescriptorMBS()
- CBPeripheralMBS.readValueForDescriptor(descriptor as CBDescriptorMBS)
- CBPeripheralMBS.writeValue(data as MemoryBlock, Descriptor as CBDescriptorMBS)
Some events using this class:
- CBPeripheralMBS.DidUpdateValueForDescriptor(descriptor as CBDescriptorMBS, error as NSErrorMBS)
- CBPeripheralMBS.DidWriteValueForDescriptor(descriptor as CBDescriptorMBS, error as NSErrorMBS)
Some examples using this class:
The items on this page are in the following plugins: MBS Bluetooth Plugin.
CBCharacteristicMBS - CBGroupIdentityMBS