Bluetooth Low Energy (BLE) library for Node, Deno, and Bun using the excellent SimpleBLE library.
How you install node-simpleble depends on which runtime you are using.
npm install --save simpleble
import { resolveBindings } from "simpleble";
bun install simpleble
import { resolveBindings } from "simpleble";
import { resolveBindings } from "https://deno.land/x/simpleble@0.1.0/mod.ts";
Check out the latest documentation here: https://doc.deno.land/https://deno.land/x/simpleble/mod.ts
Node-SimpleBLE depends on SimpleBLE, so make sure submodules are checked out first:
git submodule init
git submodule update
To build Node-SimpleBLE:
npm run build
After building SimpleBLE and the bindings, run one of the examples:
deno run -A --unstable https://deno.land/x/simpleble@0.1.0/examples/deno/scan.ts
deno run -A --unstable ./deno_dist/examples/deno/scan.ts
npx ts-node-esm ./examples/node/scan.ts
Released under the MIT License.