toip.tools

function · Node only

nodeSerialPort

A USB serial port through the "serialport" package. 115200 baud for RUI3 and RNode.

@toip-tools/mesh-transport/nodeView source
TypeScriptImport
import { nodeSerialPort } from "@toip-tools/mesh-transport/node";

Declaration

TypeScriptSignature
nodeSerialPort(path: string, baud?: number): SerialPortLike;

Parameters

pathrequired
string
baudoptional
number

Default: 115200

Returns