victor-bluetooth-plugin
v0.0.34
Published
A plugin for connecting to classic BT devices on android
Downloads
13
Readme
victor-bluetooth-plugin
A plugin for connecting to classic BT devices on android
Install
npm install victor-bluetooth-plugin
npx cap sync
API
checkPermissions()
checkPermissions() => Promise<void>
listDevices()
listDevices() => Promise<{ devices: { name: string; address: string; }[]; }>
Returns: Promise<{ devices: { name: string; address: string; }[]; }>
scan()
scan() => Promise<void>
connect(...)
connect(options: { address: string; }) => Promise<void>
| Param | Type |
| ------------- | --------------------------------- |
| options
| { address: string; } |
readData()
readData() => Promise<{ data: string; }>
Returns: Promise<{ data: string; }>