/**
* Unique gateway ID generated before hosting a gateway resource.
*/
-uint32_t g_GatewayID = 0;
+static uint32_t g_GatewayID = 0;
/**
* Used for assigning unique ID.to endpoint's connected to this gateway
}
responseMessage.info.messageId = info->messageId;
+ responseMessage.info.dataType = CA_RESPONSE_DATA;
CAResult_t caRes = CASendResponse(&nextHop, &responseMessage);
if (CA_STATUS_OK != caRes)
if(isRequest)
{
CARequestInfo_t *msg = message;
+ msg->info.dataType = CA_REQUEST_DATA;
CAResult_t caRes = CASendRequest(&nextHop, msg);
if (CA_STATUS_OK != caRes)
{
else
{
CAResponseInfo_t *msg = message;
+ msg->info.dataType = CA_RESPONSE_DATA;
CAResult_t caRes = CASendResponse(&nextHop, msg);
if (CA_STATUS_OK != caRes)
{
{
if (!g_isRMInitialized)
{
- OIC_LOG(ERROR, TAG, "RM not initialized");
+ OIC_LOG(INFO, TAG, "RM not initialized");
*selfDestination = true;
return OC_STACK_OK;
}
{
if (!g_isRMInitialized)
{
- OIC_LOG(ERROR, TAG, "RM not initialized");
+ OIC_LOG(INFO, TAG, "RM not initialized");
*selfDestination = true;
return OC_STACK_OK;
}