goto exit;
}
else if(requestResult == OC_STACK_SLOW_RESOURCE ||
- requestResult == OC_STACK_REPEATED_REQUEST)
+ requestResult == OC_STACK_DUPLICATE_REQUEST)
{
if(rcvdPdu->hdr->type == COAP_MESSAGE_CON)
{
OC_STACK_NO_RESOURCE, /* resource not found */
OC_STACK_RESOURCE_ERROR, /* ex: not supported method or interface */
OC_STACK_SLOW_RESOURCE,
- OC_STACK_REPEATED_REQUEST,
+ OC_STACK_DUPLICATE_REQUEST,
OC_STACK_NO_OBSERVERS, /* resource has no registered observers */
OC_STACK_OBSERVER_NOT_FOUND,
OC_STACK_VIRTUAL_DO_NOT_HANDLE,
else
{
OC_LOG(INFO, TAG, PCF("This is either a repeated Server Request or blocked Server Request"));
- result = OC_STACK_REPEATED_REQUEST;
+ result = OC_STACK_DUPLICATE_REQUEST;
}
return result;
static const char NOT_FOUND[] = "Resource Not Found";
static const char RESOURCE_ERROR[] = "Resource Error";
static const char SLOW_RESOURCE[] = "Slow Resource";
- static const char REPEATED_REQUEST[] = "Repeated Request";
+ static const char DUPLICATE_REQUEST[] = "Duplicate Request";
static const char NO_OBSERVERS[] = "No Observers";
static const char OBSV_NO_FOUND[] = "Stack observer not found";
static const char OBSV_NOT_ADDED[] = "Stack observer not added";
return OC::Exception::RESOURCE_ERROR;
case OC_STACK_SLOW_RESOURCE:
return OC::Exception::SLOW_RESOURCE;
- case OC_STACK_REPEATED_REQUEST:
- return OC::Exception::REPEATED_REQUEST;
+ case OC_STACK_DUPLICATE_REQUEST:
+ return OC::Exception::DUPLICATE_REQUEST;
case OC_STACK_NO_OBSERVERS:
return OC::Exception::NO_OBSERVERS;
case OC_STACK_OBSERVER_NOT_FOUND: