Initial Node.js serial transport (#779)
* Initial Node.js serial transport * Minor doc fixes * Add serialport to lockfile * Typo fix * Fix link:
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# @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
|
||||
|
||||

|
||||
Reference in New Issue
Block a user