diff --git a/src/@ionic-native/plugins/ble/index.ts b/src/@ionic-native/plugins/ble/index.ts index 11adb975d6..8708bb0cae 100644 --- a/src/@ionic-native/plugins/ble/index.ts +++ b/src/@ionic-native/plugins/ble/index.ts @@ -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} Returns an Observable that notifies of success/failure. + */ + @Cordova({ + observable: true, + }) + setPin(pin: string): Observable { + return; + } + /** * Connect to a peripheral. * @usage