disable default scan interval time in android BLE
authorjihwan.seo <jihwan.seo@samsung.com>
Wed, 7 Dec 2016 07:41:20 +0000 (16:41 +0900)
committerRick Bell <richard.s.bell@intel.com>
Wed, 7 Dec 2016 22:09:14 +0000 (22:09 +0000)
since there is some issue related power consumption in scanning.
it is better to disable it basically

Change-Id: Ic0da8da453b9c0596e521fd5078ec97cad514788
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15215
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
resource/csdk/connectivity/src/bt_le_adapter/android/caleclient.c

index 54a67ee..18c3cd7 100644 (file)
@@ -3919,8 +3919,10 @@ void CALEClientUpdateSendCnt(JNIEnv *env)
         OIC_LOG(DEBUG, TAG, "set signal for send data");
     }
 
+#ifdef SCAN_INTERVAL
     // reset interval scan logic
     CALERestartScanWithInterval(g_scanIntervalTimePrev, 0, BLE_SCAN_ENABLE);
+#endif
 
     // mutex unlock
     oc_mutex_unlock(g_threadMutex);
@@ -4535,8 +4537,10 @@ Java_org_iotivity_ca_CaLeClientInterface_caLeGattServicesDiscoveredCallback(JNIE
         }
     }
 
+#ifdef SCAN_INTERVAL
     // reset interval scan logic
     CALERestartScanWithInterval(g_scanIntervalTimePrev, 0, BLE_SCAN_ENABLE);
+#endif
 
     OIC_LOG(INFO, TAG, "ServicesDiscovery is successful");
     (*env)->ReleaseStringUTFChars(env, jni_address, address);