0.0.2 • Published 2 years ago

hmprinter-plugin v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

hmprinter-plugin

a plugin using hm printer to print pdf

Install

npm install hmprinter-plugin
npx cap sync

API

echo(...)

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

Returns: Promise<{ value: string; }>


connect(...)

connect(options: { btDevice: string; }) => Promise<{ isConnected: boolean; }>

连接蓝牙打印机

ParamType
options{ btDevice: string; }

Returns: Promise<{ isConnected: boolean; }>