- Open up a terminal
- cd ~
- sudo mkdir repo
- cd repo
- git clone https://github.com/qbalsdon/BLE_Rpi_Peripheral.git
- cd BLE_Rpi_Peripheral
- sudo ./scripts/setup.sh
Pre-Requisites:
All you need to do is make sure the Pi is up to date, with NPM installed. You do not need any pre-requisites from older Pi builds that did not include Bluetooth. Please do not manually install any of these:
- bluetooth
- bluez
- libbluetooth-dev
- libudev-dev
After installing NPM, you will need to update /usr/include/nodejs/deps/v8/include/v8.h from:
enum WriteOptions { NO_OPTIONS = 0, HINT_MANY_WRITES_EXPECTED = 1, NO_NULL_TERMINATION = 2, PRESERVE_ASCII_NULL = 4, };
to
enum WriteOptions { NO_OPTIONS = 0, HINT_MANY_WRITES_EXPECTED = 1, NO_NULL_TERMINATION = 2, PRESERVE_ASCII_NULL = 4, REPLACE_INVALID_UTF8 = 0 };
Then you can checkout this repo and run 'npm install'