simpleble
v1.2.0
Published
Bluetooth LE library for Node, Deno, and Bun
Downloads
10
Maintainers
Readme
Node-SimpleBLE
Bluetooth Low Energy (BLE) library for Node, Deno, and Bun using the excellent SimpleBLE library.
Installing
How you install node-simpleble depends on which runtime you are using.
Node.js
npm install --save simpleble
import { resolveBindings } from "simpleble";
Bun.sh
bun install simpleble
import { resolveBindings } from "simpleble";
Deno
import { resolveBindings } from "https://deno.land/x/[email protected]/mod.ts";
Documentation
Check out the latest documentation here: https://doc.deno.land/https://deno.land/x/simpleble/mod.ts
Building
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
Running
After building SimpleBLE and the bindings, run one of the examples:
deno run -A --unstable https://deno.land/x/[email protected]/examples/deno/scan.ts
deno run -A --unstable ./deno_dist/examples/deno/scan.ts
npx ts-node-esm ./examples/node/scan.ts
License
Released under the MIT License.