Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

CBMutableDescriptorMBS.Constructor(UUID as CBUUIDMBS, value as variant)
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
method Bluetooth MBS Bluetooth Plugin 18.1 Yes No No Yes, macOS only No
Function: Returns a newly initialized mutable descriptor with a specified value.
UUID: A 128-bit UUID that identifies the characteristic. You must use only one of the two currently supported descriptor types: CBUUIDCharacteristicUserDescriptionString or CBUUIDCharacteristicFormatString. For more details about these descriptor types, see CBUUID.

value: The descriptor value to be cached. This value is required (that is, it must not be nil) and cannot be updated dynamically after the descriptor has been published.

Returns a newly initialized mutable descriptor.

The value type of value depends on the type of descriptor.

  • The value type of a characteristic user description descriptor (CBUUIDCharacteristicUserDescriptionString) is a string that can be used to provide a human-readable description of the characteristic’s value.
  • The value type of a characteristic format descriptor (CBUUIDCharacteristicFormatString) is a memoryblock that can be used to specify how the characteristic’s value should be formatted for presentation purposes.

If you want to create a local characteristic format descriptor, the descriptor’s value must conform to the attribute value of the characteristic format descriptor as defined in the Bluetooth 4.0 specification, Volume 3, Part G, Section (for more information, see Bluetooth 4.0 Characteristic Presentation Format).

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Bluetooth Plugin.

MBS FileMaker Plugins