下载 bluez 5.9
https://www.kernel.org/pub/linux/bluetooth/bluez-5.9.tar.xz
依次执行:
sudo apt-get install libical-dev
sudo apt-get install libreadline-dev
./configure --with-systemdsystemunitdir=/lib/systemd/system --with-systemduserunitdir=/usr/lib/systemd
make
sudo make install
参考网址:
http://blog.csdn.net/twy76/article/details/23851587
https://www.jaredwolff.com/blog/get-started-with-bluetooth-low-energy/
https://github.com/pcborenstein/bluezDoc/wiki/hcitool-and-gatttool-example
https://www.elinux.org/RPi_Bluetooth_LE
离线