Skip to content

Symbitic/node-simpleble

Repository files navigation

Node-SimpleBLE

Tags Checks License

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/simpleble@0.1.0/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/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

License

Released under the MIT License.

About

Bluetooth LE bindings for Node, Deno and Bun using SimpleBLE.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •