}
}
- OIC_LOG(INFO, TAG, "Callback for presence");
-
+ OIC_LOG(INFO, TAG, "Before calling into application address space for presence");
cbResult = cbNode->callBack(cbNode->context, cbNode->handle, &response);
+ OIC_LOG(INFO, TAG, "After calling into application address space for presence");
if (cbResult == OC_STACK_DELETE_TRANSACTION)
{
else if(responseInfo->result == CA_RETRANSMIT_TIMEOUT)
{
OIC_LOG(INFO, TAG, "Receiving A Timeout for this token");
- OIC_LOG(INFO, TAG, "Calling into application address space");
OCClientResponse response =
{.devAddr = {.adapter = OC_DEFAULT_ADAPTER}};
response.identity.id_length = responseInfo->info.identity.id_length;
response.result = CAResponseToOCStackResult(responseInfo->result);
+ OIC_LOG(INFO, TAG, "Before calling into application address space for reTrans timeout");
cbNode->callBack(cbNode->context,
cbNode->handle, &response);
+ OIC_LOG(INFO, TAG, "After calling into application address space for reTrans timeout");
FindAndDeleteClientCB(cbNode);
- OICFree(response.resourceUri);
+ OICFree((void *)response.resourceUri);
}
#ifdef __TIZENRT__
else if ((cbNode->method == OC_REST_OBSERVE || cbNode->method == OC_REST_OBSERVE_ALL)
response.identity.id_length = responseInfo->info.identity.id_length;
response.result = OC_STACK_UNAUTHORIZED_REQ;
+ OIC_LOG(INFO, TAG, "Before calling into application address space for observe resp");
cbNode->callBack(cbNode->context,
cbNode->handle,
&response);
+ OIC_LOG(INFO, TAG, "After calling into application address space for observe resp");
+
FindAndDeleteClientCB(cbNode);
OICFree(response.resourceUri);
}
else
{
OIC_LOG(INFO, TAG, "This is a regular response, A client call back is found");
- OIC_LOG(INFO, TAG, "Calling into application address space");
OCClientResponse response;
memset(&response, 0, sizeof(OCClientResponse));
{
OIC_LOG_V(ERROR, TAG, "Unknown Payload type in Discovery: %d %s",
cbNode->method, cbNode->requestUri);
- OICFree(response.resourceUri);
+ OICFree((void *)response.resourceUri);
return;
}
}
{
OIC_LOG_V(ERROR, TAG, "Unknown Payload type: %d %s",
cbNode->method, cbNode->requestUri);
- OICFree(response.resourceUri);
+ OICFree((void *)response.resourceUri);
return;
}
{
OIC_LOG(ERROR, TAG, "Error converting payload");
OCPayloadDestroy(response.payload);
- OICFree(response.resourceUri);
+ OICFree((void *)response.resourceUri);
return;
}
}
{
OIC_LOG(ERROR, TAG, "#header options are more than MAX_HEADER_OPTIONS");
OCPayloadDestroy(response.payload);
- OICFree(response.resourceUri);
+ OICFree((void *)response.resourceUri);
return;
}
HandleBatchResponse(cbNode->requestUri, (OCRepPayload **)&response.payload);
}
+ OIC_LOG(INFO, TAG, "Before calling into application address space for handleResponse");
OCStackApplicationResult appFeedback = cbNode->callBack(cbNode->context,
cbNode->handle,
&response);
+ OIC_LOG(INFO, TAG, "After calling into application address space for handleResponse");
+
cbNode->sequenceNumber = response.sequenceNumber;
if (appFeedback == OC_STACK_DELETE_TRANSACTION)
}
}
- OICFree(response.resourceUri);
+ OICFree((void *)response.resourceUri);
OCPayloadDestroy(response.payload);
}
return;
response.identity.id_length = errorInfo->info.identity.id_length;
response.result = CAResultToOCResult(errorInfo->result);
+ OIC_LOG(INFO, TAG, "Before calling into application address space for error response");
cbNode->callBack(cbNode->context, cbNode->handle, &response);
+ OIC_LOG(INFO, TAG, "After calling into application address space for error response");
}
ResourceObserver *observer = GetObserverUsingToken(errorInfo->info.token,
OCStackResult OCInit1(OCMode mode, OCTransportFlags serverFlags, OCTransportFlags clientFlags)
{
+ OC_UNUSED(serverFlags);
+ OC_UNUSED(clientFlags);
+
OIC_LOG(DEBUG, TAG, "call OCInit1");
return OCInit2(mode, OC_DEFAULT_FLAGS, OC_DEFAULT_FLAGS, OC_DEFAULT_ADAPTER);
}
OIC_LOG_V(DEBUG, TAG, "moving to TTL level %d",
cbNode->presence->TTLlevel);
+ OIC_LOG(INFO, TAG, "Before calling into application address space for presence timeout");
cbResult = cbNode->callBack(cbNode->context, cbNode->handle, &clientResponse);
+ OIC_LOG(INFO, TAG, "After calling into application address space for presence timeout");
+
if (cbResult == OC_STACK_DELETE_TRANSACTION)
{
FindAndDeleteClientCB(cbNode);
{
OCBindResourceInsToResource(handle, ins);
}
+
+ OICFree(uri);
+ uri = NULL;
}
}
+
+ // Free links
+ size_t count = calcDimTotal(dimensions);
+ for (size_t k = 0; k < count; k++)
+ {
+ OCRepPayloadDestroy(links[k]);
+ }
+ OICFree(links);
}
}
}