* feat: publish js libs to npm * changed license type * updated readme * added id * added exclusion for web and deno packages * update comment * updating env var
36 lines
1.7 KiB
Markdown
36 lines
1.7 KiB
Markdown
# @meshtastic/transport-web-bluetooth
|
|
|
|
[](https://jsr.io/@meshtastic/transport-web-bluetooth)
|
|
[](https://github.com/meshtastic/js/actions/workflows/ci.yml)
|
|
[](https://cla-assistant.io/meshtastic/meshtastic.js)
|
|
[](https://opencollective.com/meshtastic/)
|
|
[](https://vercel.com?utm_source=meshtastic&utm_campaign=oss)
|
|
|
|
## Overview
|
|
|
|
`@meshtastic/transport-web-bluetooth` Provides Web Bluetooth transport for
|
|
Meshtastic devices. Installation instructions are available at
|
|
[JSR](https://jsr.io/@meshtastic/transport-web-bluetooth)
|
|
[NPM](https://www.npmjs.com/org/meshtastic/transport-web-bluetooth)
|
|
|
|
## Usage
|
|
|
|
```ts
|
|
import { MeshDevice } from "@meshtastic/core";
|
|
import { TransportWebBluetooth } from "@meshtastic/transport-web-bluetooth";
|
|
|
|
const transport = await TransportWebBluetooth.create();
|
|
const device = new MeshDevice(transport);
|
|
```
|
|
|
|
## Stats
|
|
|
|

|
|
|
|
### Compatibility
|
|
|
|
The Web Bluetooth API's have limited support in browsers, compatibility is
|
|
represented in the matrix below.
|
|
|
|

|