Skip to content

wjh1223745567/capacitor-serialport

Repository files navigation

serialport

ionic capacitor串口插件

Install

npm install capacitor-serialport

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
Param Type
options { value: string; }

Returns: Promise<{ value: string; }>


makezero()

makezero() => Promise<void>

connSerialPort(...)

connSerialPort(options: { serialPath: string; baudRate: number; flags: number; }) => Promise<void>
Param Type
options { serialPath: string; baudRate: number; flags: number; }

sendPortMsg(...)

sendPortMsg(options: { msg: string; }) => Promise<void>
Param Type
options { msg: string; }