return NULL;
}
- if (IOTCON_OBSERVE == observe_type)
+ if (IOTCON_OBSERVE_IGNORE_OUT_OF_ORDER == observe_type)
method = OC_REST_OBSERVE;
- else if (IOTCON_OBSERVE_ALL == observe_type)
+ else if (IOTCON_OBSERVE_ACCEPT_OUT_OF_ORDER == observe_type)
method = OC_REST_OBSERVE_ALL;
else
method = OC_REST_OBSERVE_ALL;
...
{
int ret;
- ret = iotcon_remote_resource_set_notify_cb(door_resource, IOTCON_OBSERVE_ALL, NULL,
+ ret = iotcon_remote_resource_set_notify_cb(door_resource, IOTCON_OBSERVE_ACCEPT_OUT_OF_ORDER, NULL,
_on_resopnse_observe, NULL);
if (IOTCON_ERROR_NONE != ret)
return;
RETV_IF(NULL == resource, IOTCON_ERROR_INVALID_PARAMETER);
- ret = icl_remote_resource_observer_start(resource, IOTCON_OBSERVE, NULL,
+ ret = icl_remote_resource_observer_start(resource, IOTCON_OBSERVE_IGNORE_OUT_OF_ORDER, NULL,
_caching_observe_cb, resource, _caching_observe_cleanup, &sub_id, &handle);
if (IOTCON_ERROR_NONE != ret) {
ERR("icl_remote_resource_observer_start() Fail(%d)", ret);
* @since_tizen 3.0
*/
typedef enum {
- IOTCON_OBSERVE = 0, /**< Indicates observation request for most up-to-date notifications only */
- IOTCON_OBSERVE_ALL = 1 /**< Indicates observation request for all notifications including stale notifications */
+ IOTCON_OBSERVE_IGNORE_OUT_OF_ORDER = 0, /**< Indicates observation request for most up-to-date notifications only */
+ IOTCON_OBSERVE_ACCEPT_OUT_OF_ORDER = 1 /**< Indicates observation request for all notifications including stale notifications */
} iotcon_observe_type_e;
/**
}
/* Set NOTIFY callback */
- ret = iotcon_remote_resource_set_notify_cb(resource_clone, IOTCON_OBSERVE, NULL,
+ ret = iotcon_remote_resource_set_notify_cb(resource_clone, IOTCON_OBSERVE_IGNORE_OUT_OF_ORDER, NULL,
_on_response, NULL);
if (IOTCON_ERROR_NONE != ret) {
ERR("iotcon_remote_resource_set_notify_cb() Fail(%d)", ret);