Platforms to show: All Mac Windows Linux Cross-Platform
CBMutableCharacteristicMBS class
Super class: CBCharacteristicMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Bluetooth | MBS Bluetooth Plugin | 18.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This class adds write access to many of the properties in the CBCharacteristic class it inherits from.
You use this class to create a characteristic and to set its properties and permissions as desired. After you create a characteristic and add it to a local service, you can publish it (and the service) to the peripheral’s local database using the addService method of the CBPeripheralManager class. After you publish a characteristic, the characteristic is cached and you can no longer make changes to it.
Subclass of the CBCharacteristicMBS class.
- 3 properties
- property permissions as Integer
- property properties as Integer
- property value as MemoryBlock
- 3 methods
- method Constructor(UUID as CBUUIDMBS, properties as Integer, value as MemoryBlock, permissions as Integer)
- method setDescriptors(Descriptors() as CBDescriptorMBS)
- method subscribedCentrals as CBDescriptorMBS()
- shared method Available as boolean
- 4 constants
Permissions Flags
Constant | Value | Description |
---|---|---|
kReadable | 1 |
The characteristic’s value has read-only permission. |
kReadEncryptionRequired | 4 |
The characteristic’s value is readable only by trusted devices. |
kWriteable | 2 |
The characteristic’s value has write-only permission. |
kWriteEncryptionRequired | 8 |
The characteristic’s value is writeable only by trusted devices. |
Super class CBCharacteristicMBS
- 5 properties
- property isBroadcasted as Boolean
- property isNotifying as Boolean
- property properties as Integer
- property service as CBServiceMBS
- property value as MemoryBlock
- 2 methods
- method Constructor Private
- method descriptors as CBDescriptorMBS()
- 10 constants
Property Constants
Constant | Value | Description |
---|---|---|
kPropertyAuthenticatedSignedWrites | &h40 |
Signed writes of the characteristic’s value are permitted, without a response from the peripheral to indicate that the write was successful. |
kPropertyBroadcast | 1 |
The characteristic’s value can be broadcast using a characteristic configuration descriptor. |
kPropertyExtendedProperties | &h80 |
Additional characteristic properties are defined in the characteristic extended properties descriptor. |
kPropertyIndicate | &h20 |
Indications of the characteristic’s value are permitted, with a response from the central to indicate that the indication was received. |
kPropertyIndicateEncryptionRequired | &h200 |
Only trusted devices can enable indications of the characteristic’s value. |
kPropertyNotify | &h10 |
Notifications of the characteristic’s value are permitted, without a response from the central to indicate that the notification was received. |
kPropertyNotifyEncryptionRequired | &h100 |
Only trusted devices can enable notifications of the characteristic’s value. |
kPropertyRead | 2 |
The characteristic’s value can be read. |
kPropertyWrite | 8 |
The characteristic’s value can be written, with a response from the peripheral to indicate that the write was successful. |
kPropertyWriteWithoutResponse | 4 |
The characteristic’s value can be written, without a response from the peripheral to indicate that the write was successful. |
Super class CBAttributeMBS
- 2 properties
- method Constructor Private
- shared method Available as boolean
This class has no sub classes.
Some methods using this class:
- CBPeripheralManagerMBS.updateValue(value as MemoryBlock, characteristic as CBMutableCharacteristicMBS, onSubscribedCentrals() as CBCentralMBS = nil) as Boolean
The items on this page are in the following plugins: MBS Bluetooth Plugin.
CBManagerMBS - CBMutableDescriptorMBS