Skip to content

Commit

Permalink
fix(bluetooth-serial): add missing disconnect method
Browse files Browse the repository at this point in the history
closes #1151
  • Loading branch information
ihadeed committed Mar 8, 2017
1 parent 683b808 commit 74971fe
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/plugins/bluetoothserial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74971fe

Please sign in to comment.