0.1.0 • Published 7 months ago

@kduma-autoid/capacitor-bluetooth-printer v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@kduma-autoid/capacitor-bluetooth-printer

Allows printing on SPP BT printers

Install

npm install @kduma-autoid/capacitor-bluetooth-printer
npx cap sync

API

list()

list() => Promise<{ devices: BluetoothDevice[]; }>

Returns: Promise<{ devices: BluetoothDevice[]; }>


connect(...)

connect(options: { address: string; }) => Promise<void>
ParamType
options{ address: string; }

print(...)

print(options: { data: string; }) => Promise<void>
ParamType
options{ data: string; }

disconnect()

disconnect() => Promise<void>

connectAndPrint(...)

connectAndPrint(options: { address: string; data: string; }) => Promise<void>
ParamType
options{ address: string; data: string; }

Type Aliases

BluetoothDevice

{ name: string, address: string, type: BluetoothDeviceType }

Enums

BluetoothDeviceType

MembersValue
Unknown"unknown"
Classic"classic"
Le"le"
Dual"dual"
0.1.0

7 months ago

0.0.1

1 year ago