API reference · Node only

# @toip-tools/mesh-transport/node

18 public exports.

Module import:

```ts
import { detectRadios, fileContacts, fileGatewayStore } from "@toip-tools/mesh-transport/node";
```

## Functions

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

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

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

  A gateway's custody record in a JSON file: survives restarts, so a resent VIA is never posted twice.

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

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

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

  One JSON file, written whole and atomically (to a temporary file, then renamed).

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

  A KISS frame: FEND, command, escaped data, FEND.

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

  Listens for PULL\_DATA on a UDP port for \`ms\`: each gateway's EUI and address.

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

  Serial ports, with a hint at the board family from the USB vendor id (never the firmware).

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

  The same wrapper over serialport's mock binding, for trying adapters without hardware.

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

  A USB serial port through the "serialport" package.

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

  Works out what is on one serial port.

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

  The txpk for one frame under a plan's transmit setting.

## Classes

- [`GwmpLink`](https://toip.tools/toolkit/mesh-transport/api/node/GwmpLink/)
- [`GwmpServer`](https://toip.tools/toolkit/mesh-transport/api/node/GwmpServer/)
- [`KissDecoder`](https://toip.tools/toolkit/mesh-transport/api/node/KissDecoder/)

## Types

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

## Constants

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

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

---

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