Skip to content

Allows a Raspberry Pi to be used as a Bluetooth Low Energy Peripheral

Notifications You must be signed in to change notification settings

chris-rg/BLE_Rpi_Peripheral

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BLE_Rpi_Peripheral

Allows a Raspberry Pi to be used as a Bluetooth Low Energy Peripheral

THE EASY WAY:

Download the pre-defined SD card image and deploy.

THE SLIGHTLY LESS EASY WAY:

  1. Open up a terminal
  2. cd ~
  3. sudo mkdir repo
  4. cd repo
  5. git clone https://github.com/qbalsdon/BLE_Rpi_Peripheral.git
  6. cd BLE_Rpi_Peripheral
  7. sudo ./scripts/setup.sh

THE HARD WAY:

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
These are older pre-requisites from bleno that cause issues when connecting with Android devices.

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'

About

Allows a Raspberry Pi to be used as a Bluetooth Low Energy Peripheral

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.6%
  • Shell 40.4%