victor-bluetooth-plugin
A plugin for connecting to classic BT devices on android
Install
npm install victor-bluetooth-plugin
npx cap sync
API
connect(...)
connect(options: { address: string; }) => Promise<{ connected: boolean; }>
Param | Type |
---|
options | { address: string; } |
Returns: Promise<{ connected: boolean; }>
read(...)
read(options: { address: string; }) => Promise<{ data: string; }>
Param | Type |
---|
options | { address: string; } |
Returns: Promise<{ data: string; }>
scan()
scan() => Promise<{ devices: { name: string; address: string; }[]; }>
Returns: Promise<{ devices: { name: string; address: string; }[]; }>