function · Node only
mockSerialPort
The same wrapper over serialport's mock binding, for trying adapters without hardware.
@toip-tools/mesh-transport/nodeView sourceimport { mockSerialPort } from "@toip-tools/mesh-transport/node";
Declaration
mockSerialPort(path: string, opts?: {
echo?: boolean;
}): SerialPortLike;
Parameters
pathrequiredstringoptsoptional{ echo?: boolean; }Default:
{}