From 7121e74d95856749b77df320cc5e52464353d18b Mon Sep 17 00:00:00 2001 From: randdusing Date: Tue, 23 Feb 2016 23:45:16 -0600 Subject: [PATCH] update readme and changelog --- CHANGELOG.md | 3 +++ README.md | 69 ++++++++++++++++++++++++++-------------------------- package.json | 2 +- 3 files changed, 39 insertions(+), 35 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6eb8e0..1ab8874 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change Log +## 3.1.0 - 2016-02-23 +- Add support for isLocationEnabled + ## 3.0.0 - 2016-01-25 - Sync Angular wrapper's and Cordova plugin's version numbers - Timeouts available on most functions diff --git a/README.md b/README.md index 1dcb8ca..81c685d 100755 --- a/README.md +++ b/README.md @@ -87,40 +87,41 @@ Connect uses the notify callback as well since the connection state may change. ## Available Functions For details on each function, please visit https://github.com/randdusing/cordova-plugin-bluetoothle. A few methods require you wait for notify rather than resolve since the callback may be called multiple times: intialize, startScan, connect, reconnect, disconnect, subscribe. Enable and disable only wait for error since the "success" is returned to the initialize -$cordovaBluetoothLE.initialize(params).then(null, error, success); -$cordovaBluetoothLE.enable().then(null, error); **Android** -$cordovaBluetoothLE.disable().then(null, error); **Android** -$cordovaBluetoothLE.startScan(params).then(null, error, success); -$cordovaBluetoothLE.stopScan().then(success, error); -$cordovaBluetoothLE.retrieveConnected(params).then(success, error); -$cordovaBluetoothLE.connect(params).then(null, error, success); -$cordovaBluetoothLE.reconnect(params).then(null, error, success); -$cordovaBluetoothLE.disconnect(params).then(null, error, success); -$cordovaBluetoothLE.close(params).then(success, error); -$cordovaBluetoothLE.discover(params).then(success, error); -$cordovaBluetoothLE.services(params).then(success, error); **iOS** -$cordovaBluetoothLE.characteristics(params).then(success, error); **iOS** -$cordovaBluetoothLE.descriptors(params).then(success, error); **iOS** -$cordovaBluetoothLE.read(params).then(success, error); -$cordovaBluetoothLE.subscribe(params).then(null, error, success); -$cordovaBluetoothLE.unsubscribe(params).then(success, error); -$cordovaBluetoothLE.write(params).then(success, error); -$cordovaBluetoothLE.readDescriptor(params).then(success, error); -$cordovaBluetoothLE.writeDescriptor(params).then(success, error); -$cordovaBluetoothLE.rssi(params).then(success, error); -$cordovaBluetoothLE.mtu(params).then(success, error); **Android** -$cordovaBluetoothLE.requestConnectionPriority(params).then(success, error); **Android** -$cordovaBluetoothLE.isInitialized(params).then(success); -$cordovaBluetoothLE.isEnabled(params).then(success); -$cordovaBluetoothLE.isScanning(params).then(success); -$cordovaBluetoothLE.isConnected(params).then(success, error); -$cordovaBluetoothLE.isDiscovered(params).then(success, error); -$cordovaBluetoothLE.hasPermission().then(success, error); **Android 6.0+** -$cordovaBluetoothLE.requestPermission().then(success, error); **Android 6.0+** -$cordovaBluetoothLE.encodedStringToBytes(encodedString); -$cordovaBluetoothLE.bytesToEncodedString(bytes); -$cordovaBluetoothLE.stringToBytes(string); -$cordovaBluetoothLE.bytesToString(bytes); +* $cordovaBluetoothLE.initialize(params).then(null, error, success); +* $cordovaBluetoothLE.enable().then(null, error); **Android** +* $cordovaBluetoothLE.disable().then(null, error); **Android** +* $cordovaBluetoothLE.startScan(params).then(null, error, success); +* $cordovaBluetoothLE.stopScan().then(success, error); +* $cordovaBluetoothLE.retrieveConnected(params).then(success, error); +* $cordovaBluetoothLE.connect(params).then(null, error, success); +* $cordovaBluetoothLE.reconnect(params).then(null, error, success); +* $cordovaBluetoothLE.disconnect(params).then(null, error, success); +* $cordovaBluetoothLE.close(params).then(success, error); +* $cordovaBluetoothLE.discover(params).then(success, error); +* $cordovaBluetoothLE.services(params).then(success, error); **iOS** +* $cordovaBluetoothLE.characteristics(params).then(success, error); **iOS** +* $cordovaBluetoothLE.descriptors(params).then(success, error); **iOS** +* $cordovaBluetoothLE.read(params).then(success, error); +* $cordovaBluetoothLE.subscribe(params).then(null, error, success); +* $cordovaBluetoothLE.unsubscribe(params).then(success, error); +* $cordovaBluetoothLE.write(params).then(success, error); +* $cordovaBluetoothLE.readDescriptor(params).then(success, error); +* $cordovaBluetoothLE.writeDescriptor(params).then(success, error); +* $cordovaBluetoothLE.rssi(params).then(success, error); +* $cordovaBluetoothLE.mtu(params).then(success, error); **Android** +* $cordovaBluetoothLE.requestConnectionPriority(params).then(success, error); **Android** +* $cordovaBluetoothLE.isInitialized(params).then(success); +* $cordovaBluetoothLE.isEnabled(params).then(success); +* $cordovaBluetoothLE.isScanning(params).then(success); +* $cordovaBluetoothLE.isConnected(params).then(success, error); +* $cordovaBluetoothLE.isDiscovered(params).then(success, error); +* $cordovaBluetoothLE.hasPermission().then(success, error); **Android 6.0+** +* $cordovaBluetoothLE.requestPermission().then(success, error); **Android 6.0+** +* $cordovaBluetoothLE.isLocationEnabled().then(success, error); **Android 6.0+** +* $cordovaBluetoothLE.encodedStringToBytes(encodedString); +* $cordovaBluetoothLE.bytesToEncodedString(bytes); +* $cordovaBluetoothLE.stringToBytes(string); +* $cordovaBluetoothLE.bytesToString(bytes); ### Options ### * useResolve - If true, forces connect and reconnect to resolve the promise rather than using notify. diff --git a/package.json b/package.json index 59fc3f4..0342f1c 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ng-cordova-bluetoothle", - "version": "1.0.0", + "version": "3.1.0", "description": "AngularJS Wrapper for Phonegap / Cordova Bluetooth LE Plugin", "author": { "name": "George Stocker",