commit | e4189294fe4ce46ffe2543bdb2d314001ddabcbc | [log] [tgz] |
---|---|---|
author | tturney <tturney@google.com> | Fri Apr 17 18:33:02 2015 -0700 |
committer | tturney <tturney@google.com> | Fri Apr 17 18:35:42 2015 -0700 |
tree | f9df6f939e38249fbcff14e5d2f61dd8da13578a | |
parent | d873e22829427165bfa11237263385789d99a267 [diff] |
Add api for enabling ble when bt is off. Change-Id: I45c574b94bfdbdb034ea70bedb0ffa3d62dcd58b
diff --git a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothFacade.java b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothFacade.java index f56e4ae..605414c 100644 --- a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothFacade.java +++ b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothFacade.java
@@ -325,6 +325,11 @@ return energyInfo.toString(); } + @Rpc(description = "Enables BLE after BT has been toggled off.") + public boolean bluetoothEnableBLE() { + return mBluetoothAdapter.enableBLE(); + } + @Override public void shutdown() { for (Map.Entry<String, BluetoothConnection> entry : connections.entrySet()) {