oc_mutex_lock(g_LEClientConnectMutex);
CAResult_t result = CA_STATUS_OK;
-#ifdef TIZEN_VD
- int ret = bt_gatt_connect(remoteAddress, true);
-#else
int ret = bt_gatt_connect(remoteAddress, false);
-#endif
+
if (BT_ERROR_NONE != ret)
{
OIC_LOG_V(ERROR, TAG, "bt_gatt_connect Failed with ret value [%s] ",
{
OIC_LOG(DEBUG, TAG, "IN");
- VERIFY_NON_NULL_VOID(remoteAddress, TAG, "remote address is NULL")
+ VERIFY_NON_NULL_RET(remoteAddress, TAG,
+ "remote address is NULL", CA_STATUS_FAILED);
CALEGattDisConnect(remoteAddress);
CALEWaittillDisconnect(g_isDisconnectedMutex, g_LEDisconnectedCond, 10);
//@Todo
//it will be implemented when tizen public 3.0 is released.
return CA_NOT_SUPPORTED;
-}
\ No newline at end of file
+}