feat(ble): update with setPin to allow set device pin (#3652)

This commit is contained in:
Nandan B N 2021-05-11 11:36:11 +05:30 committed by GitHub
parent 826f8085a4
commit da4ce96be4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,6 +263,27 @@ export class BLE extends IonicNativePlugin {
return;
}
/**
* Set device pin.
* @usage
* ```
* BLE.setPin(pin).subscribe(success => {
* console.log(success);
* },
* failure => {
* console.log('failure');
* });
* ```
* @param {string} pin Pin of the device as a string
* @return {Observable<any>} Returns an Observable that notifies of success/failure.
*/
@Cordova({
observable: true,
})
setPin(pin: string): Observable<any> {
return;
}
/**
* Connect to a peripheral.
* @usage