{
if (!clientResponse->payload || clientResponse->payload->type != PAYLOAD_TYPE_DISCOVERY)
{
- oclog() << "listenCallback(): clientResponse payload was null or the wrong type"
- << std::flush;
+ OIC_LOG_V(DEBUG, TAG, "%s: clientResponse payload was null or the wrong type",
+ __func__);
return OC_STACK_KEEP_TRANSACTION;
}
if (!clientWrapper)
{
- oclog() << "listenCallback(): failed to get a shared_ptr to the client wrapper"
- << std::flush;
+ OIC_LOG_V(DEBUG, TAG, "%s: failed to get a shared_ptr to the client wrapper",
+ __func__);
return OC_STACK_KEEP_TRANSACTION;
}
return OC_STACK_KEEP_TRANSACTION;
}
+ OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
std::string resourceURI = clientResponse->resourceUri;
std::thread exec(context->errorCallback, resourceURI, result);
exec.detach();
ListenOCContainer container(clientWrapper, clientResponse->devAddr,
reinterpret_cast<OCDiscoveryPayload*>(clientResponse->payload));
+ OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
std::thread exec(context->callback, container.Resources());
exec.detach();
}
ListenOCContainer container(clientWrapper, clientResponse->devAddr,
reinterpret_cast<OCDiscoveryPayload*>(clientResponse->payload));
+ OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
std::thread exec(context->callback, container.Resources());
exec.detach();
}
try
{
+ OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
OCRepresentation rep = parseGetSetCallback(clientResponse);
std::thread exec(context->callback, rep);
exec.detach();
}
else
{
+ OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
std::thread exec(context->callback, result,
createdUri,
nullptr);
result = e.code();
}
+ OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
std::thread exec(context->callback, serverHeaderOptions, rep, result);
exec.detach();
return OC_STACK_DELETE_TRANSACTION;
result = e.code();
}
+ OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
std::thread exec(context->callback, serverHeaderOptions, attrs, result);
exec.detach();
return OC_STACK_DELETE_TRANSACTION;
parseServerHeaderOptions(clientResponse, serverHeaderOptions);
+ OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
std::thread exec(context->callback, serverHeaderOptions, clientResponse->result);
exec.detach();
return OC_STACK_DELETE_TRANSACTION;
result = e.code();
}
+ OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
std::thread exec(context->callback, serverHeaderOptions, attrs,
result, sequenceNumber);
exec.detach();
*/
std::string url = clientResponse->devAddr.addr;
+ OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
std::thread exec(context->callback, clientResponse->result,
clientResponse->sequenceNumber, url);
<< std::flush;
}
else {
+ OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
convert(list, dpDeviceList);
std::thread exec(callback, dpDeviceList);
exec.detach();
if (NULL == list)
{
result = OC_STACK_NO_RESOURCE;
- oclog() << "findDirectPairingDevices(): No device found for direct pairing"
- << std::flush;
+ OIC_LOG_V(DEBUG, TAG, "%s: No device found for direct pairing", __func__);
}
else {
+ OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
convert(list, dpDeviceList);
std::thread exec(callback, dpDeviceList);
exec.detach();
ClientCallbackContext::DirectPairingContext* context =
static_cast<ClientCallbackContext::DirectPairingContext*>(ctx);
+ OIC_LOG_V(DEBUG, TAG, "%s: call response callback", __func__);
std::thread exec(context->callback, cloneDevice(peer), result);
exec.detach();
}