memset(&requestData, 0, sizeof(CAInfo_t));
requestData.token = token;
requestData.payload = "Temp Json Payload";
+ requestData.type = CA_MSG_NONCONFIRM;
CARequestInfo_t requestInfo;
memset(&requestInfo, 0, sizeof(CARequestInfo_t));
OIC_LOG_V(DEBUG, TAG, "responseInfo is available..");
pdu = (coap_pdu_t *) CAGeneratePdu(data->remoteEndpoint->resourceUri,
- data->responseInfo->result,
+ data->responseInfo->result,
data->responseInfo->info);
}
else
info.options = data->options;
info.numOptions = data->numOptions;
info.token = data->requestInfo->info.token;
+ info.type = data->requestInfo->info.type;
pdu = (coap_pdu_t *) CAGeneratePdu(data->remoteEndpoint->resourceUri, CA_GET, info);
memset(ReqInfo, 0, sizeof(CARequestInfo_t));
ReqInfo->method = CA_GET;
ReqInfo->info.token = token;
+ ReqInfo->info.type = CA_MSG_NONCONFIRM;
data->requestInfo = ReqInfo;
data->responseInfo = NULL;
info.options = data->options;
info.numOptions = data->numOptions;
info.token = data->requestInfo->info.token;
+ info.type = data->requestInfo->info.type;
pdu = (coap_pdu_t *) CAGeneratePdu(data->remoteEndpoint->resourceUri, CA_GET, info);
memset(ReqInfo, 0, sizeof(CARequestInfo_t));
ReqInfo->method = CA_GET;
ReqInfo->info.token = token;
+ ReqInfo->info.type = CA_MSG_NONCONFIRM;
data->requestInfo = ReqInfo;
data->responseInfo = NULL;