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

p5.ble.js: 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.

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

Check out the code, examples, website for p5.ble.js.

Here is an example code that connects to a BLE device and read from one characteristic:

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