Perform Bluetooth Low Energy GATT client functions
You can perform Bluetooth Low Energy GATT client functions using the GATT submenu options and bluetoothctl commands. Bluetooth Low Energy GATT client functions include connecting to a remote device and starting or stopping Bluetooth Low Energy GATT scans. You can retrieve the list of attributes, get attribute information, and select specific attributes. GATT functions also support reading and writing characteristic values, including encrypted characteristics, and reading and writing descriptor values. Additionally, they allow turning notifications on or off for selected attributes.
To get the list of attributes of the remote device, run the following command from the menu gatt menu:
list-attributes <bt_address>
Parameters<bt_address> is the address of the remote device.ExampleTo list the attributes of the remote device with the address 6D:38:AF:C6:B5:62, run the following command:
To get the information of an attribute, run the following command from the menu gatt menu:
attribute-info <attribute/UUID>
Parameters<attribute/UUID> is the UUID or the attribute path.ExampleTo get the information of an attribute with the UUID 00002b29-0000-1000-8000-00805f9b34fb, run the following command: