CAResult_t CAStopLE() { OIC_LOG(DEBUG, TAG, "IN"); CAStopBleGattServer(); OIC_LOG(DEBUG, TAG, "OUT"); return CA_STATUS_OK; }
void CATerminateLE() { OCLog(DEBUG, CALEADAPTER_TAG, "IN"); CASetBLEReqRescallback(NULL); CALERegisterNetworkNotifications(NULL); pthread_mutex_lock(&gBleIsServerMutex); if (gIsServer == 1) { CAStopBleGattServer(); } else { CAStopBLEGattClient(); } pthread_mutex_unlock(&gBleIsServerMutex); OCLog(DEBUG, CALEADAPTER_TAG, "OUT"); return; }