- - Setup Pi for BLE -
-
- sudo apt-get install bluez bluez-tools python3-bluez (gives us hcitool & gatttool + python imports for bluez)
-
- ### install bleah ###
- cd /opt
- git clone https://github.com/evilsocket/bleah.git
- cd bleah/
- git checkout 6a2fd3a
-
- sudo apt-get install git build-essential libglib2.0-dev python-setuptools
-
- cd /opt
- git clone https://github.com/IanHarvey/bluepy.git
- cd bluepy/
- sudo python setup.py build
- sudo python setup.py install
-
- sudo nano /usr/local/lib/Ptyhon2.7/dist-packages/bluepy-1.3.0-py2.7.egg/bluepy/btly.py
- change:
- from queue import Queue, Empty
- to:
- from Queue import Queue, Empty
- (capitolization of first "queue")
-
- cd /opt/bleah/
- python setup.py build
- sudo python setup.py install
-
- ### install spooftooph ##
- sudo apt-get install libncurses-dev libbluetooth-dev
- cd /opt
- git clone https://gitlab.com/kalilinux/packages/spooftooph.git
- cd spooftooph/
- make
- make install
-
-
- ### restart bluetooth device ###
- sudo hciconfig hci0 down && sudo hciconfig hci0 up