Added a method to include device name in advertisement data.
Change-Id: I5d6a8d835a2e3d887e3ceb3ad513602a8560f6b3
diff --git a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothLeAdvertiseFacade.java b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothLeAdvertiseFacade.java
index b952494..adbffaa 100644
--- a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothLeAdvertiseFacade.java
+++ b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothLeAdvertiseFacade.java
@@ -294,7 +294,6 @@
*
* @param includeTxPowerLevel boolean whether to include the tx power level or not in the
* advertisement
- * @throws Exception
*/
@Rpc(description = "Set ble advertisement data include tx power level")
public void setAdvertiseDataIncludeTxPowerLevel(
@@ -305,6 +304,20 @@
}
/**
+ * Set ble advertisement data include device name
+ *
+ * @param includeDeviceName boolean whether to include device name or not in the
+ * advertisement
+ */
+ @Rpc(description = "Set ble advertisement data include device name")
+ public void setAdvertiseDataIncludeDeviceName(
+ @RpcParameter(name = "includeDeviceName")
+ Boolean includeDeviceName
+ ) {
+ mAdvertiseDataBuilder.setIncludeDeviceName(includeDeviceName);
+ }
+
+ /**
* Get ble advertisement settings mode
*
* @param index the advertise settings object to use