res = IOTCON_RESPONSE_RESOURCE_CREATED;
break;
case OC_STACK_RESOURCE_DELETED:
- res = IOTCON_RESPONSE_RESULT_DELETED;
+ res = IOTCON_RESPONSE_RESOURCE_DELETED;
break;
case OC_STACK_UNAUTHORIZED_REQ:
res = IOTCON_RESPONSE_FORBIDDEN;
IOTCON_RESPONSE_OK = 0, /**< Indicates result of response for success */
IOTCON_RESPONSE_ERROR, /**< Indicates result of response for something error */
IOTCON_RESPONSE_RESOURCE_CREATED, /**< Indicates result of response for resource has created */
- IOTCON_RESPONSE_RESULT_DELETED, /**< Indicates result of response for resource has deleted */
+ IOTCON_RESPONSE_RESOURCE_DELETED, /**< Indicates result of response for resource has deleted */
IOTCON_RESPONSE_SLOW, /**< Indicates result of response for slow resource */
IOTCON_RESPONSE_FORBIDDEN, /**< Indicates result of response for accessing unauthorized resource */
} iotcon_response_result_e;
}
if (IOTCON_RESPONSE_OK != response_result
- && IOTCON_RESPONSE_RESULT_DELETED != response_result) {
+ && IOTCON_RESPONSE_RESOURCE_DELETED != response_result) {
ERR("_on_response_delete Response error(%d)", response_result);
return;
}
return -1;
}
- ret = _send_response(request, NULL, IOTCON_RESPONSE_RESULT_DELETED);
+ ret = _send_response(request, NULL, IOTCON_RESPONSE_RESOURCE_DELETED);
if (0 != ret) {
ERR("_send_response() Fail(%d)", ret);
return -1;