Skip to content

cerevo/BLECentralScripts4RPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BLE central sample scripts for Raspberry Pi

Made of node.js + noble

Requirement:

Install:

Assumes that Raspbian 8.0 is installed.

  1. Install the Bluetooth library and tools, development tools.

    $ sudo apt install -y git bluez bluez-tools libbluetooth-dev libudev-dev
    
  2. Install the node.js.

$ tar xJf node-v4.3.1-linux-armv6l.tar.xz
$ cd node-v4.3.1-linux-armv6l/
$ sudo cp -R * /usr/local
  1. Clone the scripts. "WORKDIR" to be replaced with your working directory.
$ cd WORKDIR
$ git clone https://github.com/cerevo/BLECentralScripts4RPi.git
  1. Install the node.js packages.
$ cd BLECentralScripts4RPi
$ npm install noble date-utils

Run scripts:

Enable bluetooth HCI

$ sudo hciconfig hci0 up

Run the Eddystone beacon detection script

$ sudo node beacon_detect.js

9axis.js, pwm.js also performs in the sam way.

About

BLE central sample scripts on Raspberry Pi.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published