* Initial Node.js serial transport * Minor doc fixes * Add serialport to lockfile * Typo fix * Fix link:
29 lines
1.5 KiB
Markdown
29 lines
1.5 KiB
Markdown
# @meshtastic/transport-node-serial
|
|
|
|
[](https://jsr.io/@meshtastic/transport-node-serial)
|
|
[](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-noden-node` Provides Serial transport (Node) for Meshtastic
|
|
devices. Installation instructions are available at
|
|
[JSR](https://jsr.io/@meshtastic/transport-node-serial)
|
|
[NPM](https://www.npmjs.com/package/@meshtastic/transport-node-serial)
|
|
|
|
## Usage
|
|
|
|
```ts
|
|
import { MeshDevice } from "@meshtastic/core";
|
|
import { TransportNodeSerial } from "@meshtastic/transport-node-serial";
|
|
|
|
const transport = await TransportNodeSerial.create("/dev/cu.usbserial-0001");
|
|
const device = new MeshDevice(transport);
|
|
```
|
|
|
|
## Stats
|
|
|
|

|