API reference · Browser and Node

# @toip-tools/mesh-transport/serial

3 public exports.

Module import:

```ts
import { type SerialPortLike, webSerialPort, type WebSerialPortLike } from "@toip-tools/mesh-transport/serial";
```

## Functions

- [`webSerialPort`](https://toip.tools/toolkit/mesh-transport/api/serial/webSerialPort/)

  A Web Serial port (Chrome and Edge, after a user gesture) as a SerialPortLike.

## Interfaces

- [`SerialPortLike`](https://toip.tools/toolkit/mesh-transport/api/serial/SerialPortLike/)

  The serial port every serial radio adapter uses (design §14.6, §19.1).

- [`WebSerialPortLike`](https://toip.tools/toolkit/mesh-transport/api/serial/WebSerialPortLike/)

  The parts of a Web Serial \`SerialPort\` we use.

Signatures and source documentation are generated from [`packages/mesh-transport/src/serial.ts`](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mesh-transport/src/serial.ts).

---

This is the Markdown version of https://toip.tools/toolkit/mesh-transport/api/serial/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
