Skip to content

Commit

Permalink
feat(ble): update with setPin to allow set device pin (#3652)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nandan B N committed May 11, 2021
1 parent 826f808 commit da4ce96
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/@ionic-native/plugins/ble/index.ts
Expand Up @@ -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
Expand Down

0 comments on commit da4ce96

Please sign in to comment.