From d4d1ffb4710fe8d995ff624abc91970cf5e70a46 Mon Sep 17 00:00:00 2001 From: "jihwan.seo" Date: Thu, 13 Apr 2017 19:20:56 +0900 Subject: [PATCH] [IOT-2033] Update simple base app to enable BLE Advertisement by default. Change-Id: I382ecdbd7cdcc2f60da3e5f6389c786f8d6ebc9f Signed-off-by: jihwan.seo Reviewed-on: https://gerrit.iotivity.org/gerrit/18909 Tested-by: jenkins-iotivity Reviewed-by: Jaehong Jo Reviewed-by: Uze Choi Tested-by: Uze Choi --- .../src/main/java/org/iotivity/base/examples/MessageFragment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/examples-android/simplebase/src/main/java/org/iotivity/base/examples/MessageFragment.java b/java/examples-android/simplebase/src/main/java/org/iotivity/base/examples/MessageFragment.java index cc6ed71..f118bf2 100644 --- a/java/examples-android/simplebase/src/main/java/org/iotivity/base/examples/MessageFragment.java +++ b/java/examples-android/simplebase/src/main/java/org/iotivity/base/examples/MessageFragment.java @@ -50,6 +50,7 @@ import org.iotivity.base.OcResourceResponse; import org.iotivity.base.PlatformConfig; import org.iotivity.base.QualityOfService; import org.iotivity.base.ServiceType; +import org.iotivity.ca.CaInterface; import java.io.PrintWriter; import java.io.StringWriter; @@ -510,6 +511,9 @@ public class MessageFragment extends Fragment implements OcResource.OnGetListene // ****************************************************************************** private void initOcPlatform(ModeType type) { + // BLE Advertisement is enabled by default. + CaInterface.setBTConfigure(2); + PlatformConfig cfg = new PlatformConfig(mActivity, mContext, ServiceType.IN_PROC, type, -- 2.7.4