capacitor-serialport
v0.0.11
Published
capacitor串口插件
Downloads
11
Readme
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; } |