API reference · Node only
@toip-tools/mesh-transport/node
18 public exports.
import { detectRadios, fileContacts, fileGatewayStore } from "@toip-tools/mesh-transport/node";
Functions
-
detectRadios -
fileContacts -
fileGatewayStoreA gateway's custody record in a JSON file: survives restarts, so a resent VIA is never posted twice.
-
fileOutbox -
fileReplayStore -
jsonFileOne JSON file, written whole and atomically (to a temporary file, then renamed).
-
kissEncodeA KISS frame: FEND, command, escaped data, FEND.
-
listenForGatewaysListens for PULL_DATA on a UDP port for `ms`: each gateway's EUI and address.
-
listSerialPortsSerial ports, with a hint at the board family from the USB vendor id (never the firmware).
-
mockSerialPortThe same wrapper over serialport's mock binding, for trying adapters without hardware.
-
nodeSerialPortA USB serial port through the "serialport" package.
-
probeSerialWorks out what is on one serial port.
-
txpkForThe 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.