|
|
|
@ -1,6 +1,6 @@ |
|
|
|
# @meshtastic/transport-deno |
|
|
|
# @meshtastic/transport-node |
|
|
|
|
|
|
|
[](https://jsr.io/@meshtastic/transport-deno) |
|
|
|
[](https://jsr.io/@meshtastic/transport-node) |
|
|
|
[](https://github.com/meshtastic/js/actions/workflows/ci.yml) |
|
|
|
[](https://cla-assistant.io/meshtastic/meshtastic.js) |
|
|
|
[](https://opencollective.com/meshtastic/) |
|
|
|
@ -8,17 +8,18 @@ |
|
|
|
|
|
|
|
## Overview |
|
|
|
|
|
|
|
`@meshtastic/transport-deno` Provides TCP transport (Deno) for Meshtastic |
|
|
|
`@meshtastic/transport-node` Provides TCP transport (Node) for Meshtastic |
|
|
|
devices. Installation instructions are avaliable at |
|
|
|
[JSR](https://jsr.io/@meshtastic/transport-deno) |
|
|
|
[JSR](https://jsr.io/@meshtastic/transport-node) |
|
|
|
[NPM](https://www.npmjs.com/package/@meshtastic/transport-node) |
|
|
|
|
|
|
|
## Usage |
|
|
|
|
|
|
|
```ts |
|
|
|
import { MeshDevice } from "@meshtastic/core"; |
|
|
|
import { TransportDeno } from "@meshtastic/transport-deno"; |
|
|
|
import { TransportNode } from "@meshtastic/transport-node"; |
|
|
|
|
|
|
|
const transport = await TransportDeno.create("10.10.0.57"); |
|
|
|
const transport = await TransportNode.create("10.10.0.57"); |
|
|
|
const device = new MeshDevice(transport); |
|
|
|
``` |
|
|
|
|
|
|
|
|