BLUETOOTHCTL-GATT(1) Linux System Administration BLUETOOTHCTL-GATT(1)

bluetoothctl-gatt - Generic Attribute Submenu

bluetoothctl [--options] [gatt.commands]

List attributes.

> list-attributes <attribute/UUID>

Select attribute.

> select-attribute <attribute/UUID>

Select attribute.

> attribute-info [attribute/UUID]

Read attribute value.

> read [offset]

Write attribute value.

> write <data=xx xx ...> [offset] [type]

Acquire Write file descriptor.

> acquire-write

Release Write file descriptor.

> release-write

Acquire Notify file descriptor.

> acquire-notify

Release Notify file descriptor.

> release-notify

Notify attribute value.

> notify <on/off>

Clone a device or attribute.

> clone [dev/attribute/UUID]

Register application.

> register-application [UUID ...]

Unregister application

> unregister-application

Register application service.

> register-service <UUID> [handle]

Unregister application service

> unregister-service <UUID/object>

Register as Included service.

>r egister-includes <UUID> [handle]

Unregister Included service.

> unregister-includes <Service-UUID><Inc-UUID>

Register service characteristic.

> register-characteristic <UUID> <Flags=read,write,notify...> [handle]

Unregister service characteristic.

> unregister-characteristic <UUID/object>

Register characteristic descriptor.

> register-descriptor <UUID> <Flags=read,write...> [handle]

Unregister characteristic descriptor.

> unregister-descriptor <UUID/object>


http://www.bluez.org


<linux-bluetooth@vger.kernel.org>

Free use of this software is granted under the terms of the GNU Lesser General Public Licenses (LGPL).

November 2022 BlueZ