mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
feat(ble): update with setPin to allow set device pin (#3652)
This commit is contained in:
parent
826f8085a4
commit
da4ce96be4
@ -263,6 +263,27 @@ export class BLE extends IonicNativePlugin {
|
|||||||
return;
|
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.
|
* Connect to a peripheral.
|
||||||
* @usage
|
* @usage
|
||||||
|
Loading…
Reference in New Issue
Block a user