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.
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.serialport, p5.js, Web Bluetooth API, and Processing Serial Library.
Here is a simple example to connect to a BLE device and read from one characteristic.
Read more about it on the p5.ble.js website: