I was following the bluez docs to access the gatt-services via bluetoothctl
command.
https://core.docs.ubuntu.com/en/stacks/bluetooth/bluez/docs/reference/gatt-services
The gatt server was running on a raspberry pi and I was trying to read a service from ubuntu core running on DELL 3001 gateway. However the command select-attribute
was not available. Is the documentation correct?
Below are the logs for the reference.
admin@FT****2:~$ sudo bluetoothctl
[NEW] Controller 00:23:A7:E1:3D:96 FT****2 [default]
[NEW] Device B8:27:EB:36:87:25 raspberrypi
[NEW] Device B8:C9:B5:4D:9B:F4 sanju!
Agent registered
[bluetooth]# connect B8:27:EB:36:87:25
Attempting to connect to B8:27:EB:36:87:25
[CHG] Device B8:27:EB:36:87:25 Connected: yes
Connection successful
[NEW] Primary Service
/org/bluez/hci0/dev_B8_27_EB_36_87_25/service0006
00001801-0000-1000-8000-00805f9b34fb
Generic Attribute Profile
[NEW] Characteristic
/org/bluez/hci0/dev_B8_27_EB_36_87_25/service0006/char0007
00002a05-0000-1000-8000-00805f9b34fb
Service Changed
[NEW] Descriptor
/org/bluez/hci0/dev_B8_27_EB_36_87_25/service0006/char0007/desc0009
00002902-0000-1000-8000-00805f9b34fb
Client Characteristic Configuration
[NEW] Primary Service
/org/bluez/hci0/dev_B8_27_EB_36_87_25/service003d
00000001-810e-4a5b-8d75-3e5b444bc3cf
Vendor specific
[NEW] Characteristic
/org/bluez/hci0/dev_B8_27_EB_36_87_25/service003d/char003e
00000002-810e-4a5b-8d75-3e5b444bc3cf
Vendor specific
[CHG] Device B8:27:EB:36:87:25 UUIDs: 00000001-810e-4a5b-8d75-3e5b444bc3cf
[CHG] Device B8:27:EB:36:87:25 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device B8:27:EB:36:87:25 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device B8:27:EB:36:87:25 ServicesResolved: yes e
Invalid commandselect-attribute /org/bluez/hci0/dev_B8_27_EB_36_87_25/service003d/char003e
$ sudo snap info bluez
name: bluez
summary: Bluez for Ubuntu
publisher: Canonical✓
store-url: https://snapcraft.io/bluez
contact: https://code.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/bluez
license: unset
description: |
no description
commands:
- bluez.bluetoothctl
- bluez.btattach
- bluez.btmgmt
- bluez.btmon
- bluez.hciattach
- bluez.hciconfig
- bluez.hcidump
- bluez.hcitool
- bluez.meshctl
- bluez.obexctl
- bluez.sdptool
services:
bluez: simple, enabled, active
bluez.obex: simple, enabled, active
snap-id: JmzJi9kQvHUWddZ32PDJpBRXUpGRxvNS
tracking: latest/stable
refresh-date: 4 days ago, at 19:13 IST
channels:
latest/stable: 5.48-1 2020-07-13 (229) 4MB -
latest/candidate: 5.48-1 2020-07-08 (229) 4MB -
latest/beta: 5.48-1 2020-07-03 (229) 4MB -
latest/edge: 5.48-2-dev 2020-07-10 (240) 4MB -
20/stable: –
20/candidate: –
20/beta: 5.53-1 2020-06-25 (217) 5MB -
20/edge: 5.53-2-dev 2020-07-14 (247) 5MB -
installed: 5.48-1 (229) 4MB -