Deno-WebBluetooth
WebBluetooth wrapper for Deno using the excellent SimpleBLE library.
Status
Most of the WebBluetooth standard is working.
Some things are not compatible with the WebBluetooth standard, particularly
requestDevice. The standard calls for the user to select a device manually,
which is not possible here. Instead, callbacks are used to select which
device(s) to connect to.
This adds a bluetooth.requestDevices() method to return multiple devices, and
a bluetooth.scan() method that returns an AsyncIterableIterator.
Documentation
Check out the latest documentation at doc.deno.land: https://doc.deno.land/https://deno.land/x/webbluetooth/mod.ts
Building
Before building SimpleBLE, make sure the submodules are checked out.
git submodule init
git submodule updateTo build SimpleBLE, first run the appropriate configure script:
deno task configure-linux
# OR
deno task configure-macos
# OR
deno task configure-windowsAfter that, build SimpleBLE:
deno task buildRunning
After building SimpleBLE, run one of the examples:
deno run -A --unstable ./examples/simpleble-scan.tsLicense
Released under the MIT License.