Reputation: 195
How do I use btgatt-client command line tool? Am I missing something very simple here?
As of Bluez 5.50, it is under in the tools folder (https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/tools/btgatt-client.c)
But when I try inputting the command, nothing seems to work.
pi@raspberrypi:~ $ btgatt-client
-bash: btgatt-client: command not found
pi@raspberrypi:~ $ sudo btgatt-client
sudo: btgatt-client: command not found
pi@raspberrypi:~ $ btgatt
-bash: btgatt: command not found
pi@raspberrypi:~ $ sudo btgatt
sudo: btgatt: command not found
Upvotes: 0
Views: 4074
Reputation: 2330
Bluez sources needs to be compiled with tools support (by default it is enabled), but may be disabled in your raspberry PI build.
You can configure the source using
./configure --enable-tools
If want to cross compile, you may also need to use, "--host"
Or you can directly install the package "bluz-utils" from the package manager repository. For debian,
sudo apt-get install bluez-utils
Upvotes: 1