diff --git a/Setup_Pi_for_BLE.txt b/Setup_Pi_for_BLE.txt new file mode 100644 index 0000000..7962fa6 --- /dev/null +++ b/Setup_Pi_for_BLE.txt @@ -0,0 +1,36 @@ +- Setup Pi for BLE - + +sudo apt-get install bluez bluez-tools python-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 \ No newline at end of file