toip.tools

API reference · Node only

@toip-tools/mesh-transport/node

18 public exports.

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

Functions

  • detectRadios
  • fileContacts
  • fileGatewayStore

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

  • fileOutbox
  • fileReplayStore
  • jsonFile

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

  • kissEncode

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

  • listenForGateways

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

  • listSerialPorts

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

  • mockSerialPort

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

  • nodeSerialPort

    A USB serial port through the "serialport" package.

  • probeSerial

    Works out what is on one serial port.

  • txpkFor

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

Classes

Types

Constants

Signatures and source documentation are generated from packages/mesh-transport/src/node.ts.