0.0.4 • Published 1 year ago

blueprint-nrcc v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

blueprint

capacitor blue print

Install

npm install blueprint
npx cap sync

API

echo(...)

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

Returns: Promise<{ value: string; }>


list()

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

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


connect(...)

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

print(...)

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

disconnect()

disconnect() => Promise<void>

connectAndPrint(...)

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

Type Aliases

BluetoothDevice

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

Enums

BluetoothDeviceType

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

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago