oc_mutex_lock(g_LEClientConnectMutex);
CAResult_t result = CA_STATUS_OK;
- int ret = bt_gatt_connect(remoteAddress, false);
+ int ret = bt_gatt_connect(remoteAddress, true);
if (BT_ERROR_NONE != ret)
{
OIC_LOG_V(ERROR, TAG, "bt_gatt_connect Failed with ret value [%s] ",
OIC_LOG(ERROR, TAG, "Could not add data to pending list");
return CA_STATUS_FAILED;
}
+ }
+ if(serverInfo->status == LE_STATUS_UNICAST_PENDING)
+ {
oc_mutex_lock(g_scanMutex);
if (!g_isMulticastInProgress && !g_isUnicastScanInProgress)
{