org.bluez...escriptor(5)
π NAME π
okay so this is org.bluez...escriptor(5), and the manual-name energy is Linux System Administration. It documents org.bluez.GattDescriptor β the BlueZ D-Bus GattDescriptor API documentation. slay. π
π¦ DESCRIPTION π¦
GATT local/server and remote/client descriptor attribute representation share the same high-level D-Bus API. one API, two vibes, no cap. β¨
Local/Server refers to GATT based descriptors exported by a plugin or an external application.
Remote/Client refers to GATT descriptors exported by the peer.
β¨ INTERFACE β¨
π Client π
Service: org.bluez
Interface: org.bluez.GattDescriptor1
Object path:
[variable
prefix]/{hci0,hci1,...}/dev_{BDADDR}/service#/char#/descriptor#
Used by: bluetoothctl-gatt(1)
π Server π
Service: unique name
Interface: org.bluez.GattDescriptor1
Object path: freely definable
π οΈ Methods π οΈ
π array{byte} ReadValue(dict flags) π
Issues a request to read the value of the descriptor and returns the value if the operation was successful.
Possible options:
uint16 offsetβ Read start offset in bytes.object device(server only) β Device object.string linkβ Link type (Server only). Possible values:"BR/EDR","LE".
Possible Errors:
org.bluez.Error.Failedorg.bluez.Error.InProgressorg.bluez.Error.NotPermittedorg.bluez.Error.NotAuthorizedorg.bluez.Error.NotSupported
Examples:
bluetoothctl
[gatt] > read [offset]
π void WriteValue(array{byte} value, dict flags) π
Issues a request to write the value of the descriptor.
Possible flags:
uint16 offsetβ Write start offset in bytes.uint16 mtuβ Exchanged MTU (Server only).object deviceβ Device path (Server only).string linkβ Link type (Server only). Possible values:"BR/EDR","LE".boolean prepare-authorizeβ True if prepare authorization request.
Possible Errors:
org.bluez.Error.Failedorg.bluez.Error.InProgressorg.bluez.Error.NotPermittedorg.bluez.Error.InvalidValueLengthorg.bluez.Error.NotAuthorizedorg.bluez.Error.NotSupportedorg.bluez.Error.ImproperlyConfigured
Examples:
bluetoothctl
[gatt] > write <data=xx ...> [offset] [type]
πΈ Properties πΈ
string UUID [read-only]β 128-bit descriptor UUID.object Characteristic [read-only]β Object path of the GATT characteristic the descriptor belongs to.array{byte} Value [read-only, optional]β The cached value of the descriptor. This property gets updated only after a successful read request, upon which aPropertiesChangedsignal will be emitted.array{string} Flags [read-only]β Defines how the descriptor value can be used.
Possible values:
"read""write""encrypt-read""encrypt-write""encrypt-authenticated-read""encrypt-authenticated-write""secure-read"(Server Only)"secure-write"(Server Only)"authorize"
uint16 Handle [read-only](Client Only) β Descriptor handle.uint16 Handle [read-write, optional](Server Only) β Descriptor handle. When available in the server it would attempt to use to allocate into the database which may fail, to auto allocate the value0x0000shall be used which will cause the allocated handle to be set once registered.
π That's the whole page, bestie! Footer energy: BlueZ, October 2023, and the manual is org.bluez...escriptor(5). periodt. π
π¦ where this page comes from
- arch rolling: bluez-utils 5.87-2 Β· GPL-2.0-only
- nixpkgs unstable: bluez 5.87
- ubuntu stonking: bluez 5.87-4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms