@kduma-autoid/capacitor-bluetooth-printer
Allows printing on SPP BT printers
npm install @kduma-autoid/capacitor-bluetooth-printer
npx cap sync
list() => Promise<{ devices: BluetoothDevice[]; }>
Returns: Promise<{ devices: BluetoothDevice[]; }>
connect(options: { address: string; }) => Promise<void>
Param |
Type |
options |
{ address: string; } |
print(options: { data: string; }) => Promise<void>
Param |
Type |
options |
{ data: string; } |
disconnect() => Promise<void>
connectAndPrint(options: { address: string; data: string; }) => Promise<void>
Param |
Type |
options |
{ address: string; data: string; } |
{ name: string, address: string, type: BluetoothDeviceType }
Members |
Value |
Unknown |
"unknown" |
Classic |
"classic" |
Le |
"le" |
Dual |
"dual" |