ionic capacitor串口插件
npm install capacitor-serialport
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
makezero() => Promise<void>
connSerialPort(options: { serialPath: string; baudRate: number; flags: number; }) => Promise<void>
Param | Type |
---|---|
options |
{ serialPath: string; baudRate: number; flags: number; } |
sendPortMsg(options: { msg: string; }) => Promise<void>
Param | Type |
---|---|
options |
{ msg: string; } |