capacitor-bluetooth-spp
v0.1.4
Published
Bluetooth SPP printer plugin with device selection popup and Android 12+ support
Maintainers
Readme
capacitor-bluetooth-spp
Bluetooth SPP printer plugin
Install
npm install capacitor-bluetooth-spp
npx cap syncAPI
listPairedDevices()
listPairedDevices() => Promise<{ devices: { name: string; address: string; }[]; }>Returns: Promise<{ devices: { name: string; address: string; }[]; }>
connect(...)
connect(options: { address: string; }) => Promise<{ connected: boolean; }>| Param | Type |
| ------------- | --------------------------------- |
| options | { address: string; } |
Returns: Promise<{ connected: boolean; }>
write(...)
write(options: { data: string; }) => Promise<{ success: boolean; }>| Param | Type |
| ------------- | ------------------------------ |
| options | { data: string; } |
Returns: Promise<{ success: boolean; }>
disconnect()
disconnect() => Promise<{ disconnected: boolean; }>Returns: Promise<{ disconnected: boolean; }>
