0.0.4 • Published 3 years ago
android-bt-serial-capacitor-plugin v0.0.4
android-bt-serial-capacitor-plugin
Serial Bluetooth for Android devices
Install
npm install android-bt-serial-capacitor-plugin
npx cap sync
API
getPerms(...)
getPerms(options: {}) => Promise<undefined>
Param | Type |
---|---|
options | {} |
Returns: Promise<undefined>
bluetoothAvailable(...)
bluetoothAvailable(options: {}) => Promise<undefined>
Param | Type |
---|---|
options | {} |
Returns: Promise<undefined>
getInfos(...)
getInfos(options: {}) => Promise<{ devices: [{ mac: string; addr: string; }]; networks: [{ ssid: string; is24ghz: boolean; secured: boolean; }]; }>
Param | Type |
---|---|
options | {} |
Returns: Promise<{ devices: { mac: string; addr: string; }; networks: { ssid: string; is24ghz: boolean; secured: boolean; }; }>
connect(...)
connect(options: { mac: string; ssid: string; pass: string; }) => Promise<undefined>
Param | Type |
---|---|
options | { mac: string; ssid: string; pass: string; } |
Returns: Promise<undefined>