CALEClientStopScanWithInterval();
- oc_mutex_lock(g_threadMutex);
- OIC_LOG(DEBUG, TAG, "signal - connection cond");
- oc_cond_signal(g_threadCond);
- CALEClientSetSendFinishFlag(true);
- oc_mutex_unlock(g_threadMutex);
-
- oc_mutex_lock(g_threadSendMutex);
- OIC_LOG(DEBUG, TAG, "signal - g_deviceDesc cond");
- oc_cond_signal(g_deviceDescCond);
- oc_mutex_unlock(g_threadSendMutex);
-
oc_mutex_lock(g_threadWriteCharacteristicMutex);
OIC_LOG(DEBUG, TAG, "signal - WriteCharacteristic cond");
oc_cond_signal(g_threadWriteCharacteristicCond);
oc_mutex_unlock(g_threadWriteCharacteristicMutex);
+ CALEClientSetSendFinishFlag(true);
+ oc_mutex_lock(g_threadMutex);
+ OIC_LOG(DEBUG, TAG, "signal - g_threadCond cond");
+ oc_cond_signal(g_threadCond);
+ oc_mutex_unlock(g_threadMutex);
+
oc_mutex_lock(g_deviceScanRetryDelayMutex);
OIC_LOG(DEBUG, TAG, "signal - delay cond");
oc_cond_signal(g_deviceScanRetryDelayCond);
oc_cond_signal(g_threadScanIntervalCond);
oc_mutex_unlock(g_threadScanIntervalMutex);
+ oc_mutex_lock(g_threadSendMutex);
+ OIC_LOG(DEBUG, TAG, "signal - g_deviceDesc cond");
+ oc_cond_signal(g_deviceDescCond);
+ oc_mutex_unlock(g_threadSendMutex);
+
oc_cond_free(g_deviceDescCond);
oc_cond_free(g_threadCond);
oc_cond_free(g_threadWriteCharacteristicCond);
void CATerminateLEGattClient()
{
- OIC_LOG(DEBUG, TAG, "Terminate GATT Client");
+ OIC_LOG(INFO, TAG, "IN - Terminate GATT Client");
CAStopLEGattClient();
CALEClientTerminate();
+ OIC_LOG(INFO, TAG, "OUT - Terminate GATT Client");
}
CAResult_t CAUpdateCharacteristicsToGattServer(const char *remoteAddress, const uint8_t *data,