I have been able to do basics like scan for & connect to BLE devices.
This blog post: https://acassis.wordpress.com/2016/06/
says that “gatttool” is deprecated and will be removed soon, then we need to use bluetoothctl instead.
I can, indeed, use bluetoothctl - but some of the mentioned commands are missing!
eg, 'list-attributes' and 'attribute-info' are both used in that blog, but both just return "Invalid command" on my Pi.
Are they just not available on the Pi?
Or what do I need to do to get them?
dpkg -s bluez gives the following:
Code: Select all
Package: bluez Status: install ok installed Priority: optional Section: admin Installed-Size: 2588 Maintainer: Debian Bluetooth Maintainers <[email protected]> Architecture: armhf Multi-Arch: foreign Version: 5.23-2+rpi2 Replaces: bluez-audio (<= 3.36-3), bluez-input, bluez-network, bluez-serial, bluez-utils (<= 3.36-3), udev (<< 170-1) Depends: libc6 (>= 2.15), libdbus-1-3 (>= 1.1.1), libglib2.0-0 (>= 2.28.0), libreadline6 (>= 6.0), libudev1 (>= 196), init-system-helpers (>= 1.18~), kmod, udev (>= 170-1), lsb-base, dbus Breaks: udev (<< 170-1) Conflicts: bluez-audio (<= 3.36-3), bluez-utils (<= 3.36-3) Conffiles: /etc/bluetooth/input.conf 9f85017f861ac34d983fa76fa715f9c3 /etc/bluetooth/main.conf 297ad1bff9ec02f760eb6b5b7bf48e74 /etc/bluetooth/network.conf 0c7497c405b963382ff71789d0730abd /etc/bluetooth/proximity.conf b75823a140e00905d41465c380bf89fe /etc/dbus-1/system.d/bluetooth.conf 98bb1c2cf393ac16f0ba3bb0153a4f30 /etc/default/bluetooth 1e25cf981f29147187311b94f8e0ea89 /etc/init.d/bluetooth 1d503f26c72a83c43b90422ec5907626 Description: Bluetooth tools and daemons This package contains tools and system daemons for using Bluetooth devices. . BlueZ is the official Linux Bluetooth protocol stack. It is an Open Source project distributed under GNU General Public License (GPL). Homepage: http://www.bluez.org