Platforms to show: All Mac Windows Linux Cross-Platform
CBMutableDescriptorMBS class
Super class: CBDescriptorMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
You use the CBMutableDescriptor class to create a local characteristic descriptor. After you create a descriptor and associate it with a local characteristic, you can publish it (along with the characteristic and local service to which it belongs) to the peripheral’s local database via the addService: method of the CBPeripheralManager class. After you publish a local descriptor, the descriptor is cached and you can no longer make changes to it.
There are six predefined types of descriptors that—along with their corresponding value types—are detailed in CBUUID. That said, only two of these are currently supported when creating local, mutable descriptors: the characteristic user description descriptor and the characteristic format descriptor, represented by the CBUUID constants CBUUIDCharacteristicUserDescriptionString and CBUUIDCharacteristicFormatString, respectively. The system automatically creates the characteristic extended properties descriptor and the client characteristic configuration descriptor, depending on the properties of the characteristic to which the descriptor belongs.
Subclass of the CBDescriptorMBS class.
- method Constructor(UUID as CBUUIDMBS, value as variant)
Super class CBDescriptorMBS
- 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
This class has no sub classes.
The items on this page are in the following plugins: MBS Bluetooth Plugin.
CBMutableCharacteristicMBS - CBMutableServiceMBS