jobject gatt = CALEClientConnect(env, device,
CALEClientGetFlagFromState(env, jni_address,
CA_LE_AUTO_CONNECT_FLAG));
+
if (NULL == gatt)
{
OIC_LOG(ERROR, TAG, "CALEClientConnect has failed");
newstate->autoConnectFlag);
u_arraylist_add(g_deviceStateList, newstate); // update new state
}
-
ca_mutex_unlock(g_deviceStateListMutex);
return CA_STATUS_OK;