fix(bluetooth-serial): add missing disconnect method

closes #1151
This commit is contained in:
Ibby 2017-03-08 05:46:35 -05:00
parent 683b808f27
commit 74971feb98

View File

@ -60,6 +60,13 @@ export class BluetoothSerial {
})
static connectInsecure(macAddress: string): Observable<any> { return; }
/**
* Disconnect from the connected device
* @returns {Promise<any>}
*/
@Cordova()
static disconnect(): Promise<any> { return; }
/**
* Writes data to the serial port
* @param {any} data ArrayBuffer of data