for(int i=0;i<man_data_len;i++){
pos += sprintf(compare_man_data+pos, "%.2x", man_data[i]);
}
- compare_man_data[man_data_len]='\0';
+ compare_man_data[(man_data_len*2)+1]='\0';
if (man_id == samsung_code && 0 == strncasecmp(compare_man_data, service_uuid, CUSTOM_UUID_LEN))
{
OIC_LOG_V(DEBUG, TAG, "Manufacture Data[%s] Found in %s",
error_exit:
bt_gatt_client_destroy(serverInfo->clientHandle);
+ serverInfo->clientHandle = NULL;
oc_mutex_unlock(g_LEServerListMutex);
CALEGattDisConnect(remoteAddress);
return CA_STATUS_FAILED;
if (CA_STATUS_OK == CAGetLEServerInfo(g_LEServerList, remote_address, &serverInfo))
{
if (serverInfo->status == LE_STATUS_SERVICES_DISCOVERED){
- OIC_LOG_V(DEBUG, TAG, "Mtu Size [%d]", serverInfo->mtu_size);
+ //OIC_LOG_V(DEBUG, TAG, "Mtu Size [%d]", serverInfo->mtu_size);
+ OIC_LOG_V(INFO, TAG, "Test: returning Mtu Size [%d]", serverInfo->mtu_size - CA_BLE_MTU_HEADER_SIZE);
oc_mutex_unlock(g_LEServerListMutex);
- return serverInfo->mtu_size;
+ //return serverInfo->mtu_size;
+ return serverInfo->mtu_size - CA_BLE_MTU_HEADER_SIZE;
}
}
oc_mutex_unlock(g_LEServerListMutex);