uint16_t port; // for IP
char addr[MAX_ADDR_STR_SIZE_CA]; // address for all
uint32_t ifindex; // usually zero for default interface
- char deviceId[CA_MAX_IDENTITY_SIZE]; // device ID of remote device
+ char remoteId[CA_MAX_IDENTITY_SIZE]; // device ID of remote device
#if defined (ROUTING_GATEWAY) || defined (ROUTING_EP)
char routeData[MAX_ADDR_STR_SIZE_CA]; /**< GatewayId:ClientId of
destination. **/
return CA_MEMORY_ALLOC_FAILED;
}
- OIC_LOG_V(DEBUG, TAG, "device ID of endpoint of this message is %s", endpoint->deviceId);
+ OIC_LOG_V(DEBUG, TAG, "device ID of endpoint of this message is %s", endpoint->remoteId);
#ifdef SINGLE_THREAD
CAResult_t result = CAProcessSendData(data);
out->adapter = (CATransportAdapter_t)in->adapter;
out->flags = OCToCATransportFlags(in->flags);
OICStrcpy(out->addr, sizeof(out->addr), in->addr);
- OICStrcpy(out->deviceId, sizeof(out->deviceId), in->deviceId);
+ OICStrcpy(out->remoteId, sizeof(out->remoteId), in->remoteId);
#if defined (ROUTING_GATEWAY) || defined (ROUTING_EP)
/* This assert is to prevent accidental mismatch between address size macros defined in
* RI and CA and cause crash here. */
OCUpdateResourceInsWithResponse(cbNode->requestUri, &response);
}
#endif
- // set deviceId into OCClientResponse callback parameter
+ // set remoteID(device ID) into OCClientResponse callback parameter
if (OC_REST_DISCOVER == cbNode->method)
{
OCDiscoveryPayload *payload = (OCDiscoveryPayload*) response.payload;
return;
}
- OICStrcpy(response.devAddr.deviceId, sizeof(response.devAddr.deviceId),
+ OICStrcpy(response.devAddr.remoteId, sizeof(response.devAddr.remoteId),
payload->sid);
OIC_LOG_V(INFO, TAG, "Device ID of response : %s",
- response.devAddr.deviceId);
+ response.devAddr.remoteId);
}
OCStackApplicationResult appFeedback = cbNode->callBack(cbNode->context,
if (devAddr)
{
- OIC_LOG_V(DEBUG, TAG, "DeviceID of devAddr : %s", devAddr->deviceId);
+ OIC_LOG_V(DEBUG, TAG, "remoteId of devAddr : %s", devAddr->remoteId);
}
resHandle = GenerateInvocationHandle();