p5.ble.js

Screen Shot 2019-01-03 at 4.57.15 PM.png

A Javascript library that enables communication between BLE devices and p5 sketches.

With p5.ble.js, you can - 
- Request and connect to nearby Bluetooth devices, 
- Read / write Bluetooth characteristics, 
- Start / stop notifications.

Check out the library here: Code, Website.

The library is supported by code examples, tutorials that cover many popular Bluetooth LE devices. p5.ble.js is inspired by p5.serialportp5.jsWeb Bluetooth API, and Processing Serial Library.

Here is a simple example to connect to a BLE device and read from one characteristic.

Screen Shot 2019-01-03 at 5.02.18 PM.png

Read more about it on the p5.ble.js website: