removed Max-OFE

This commit is contained in:
Olaf Bergmann committed 2012-03-06 14:09:18 +01:00
1 parent a8114040cd
commit e440853cf7
2 files changed
-9

No files matched your search

-8
View File
@@ -121,20 +121,12 @@ hnd_get_time(coap_context_t *ctx, struct coap_resource_t *resource,
if (token->length)
coap_add_option(response, COAP_OPTION_TOKEN, token->length, token->s);
/* indicate that value is good for at least 30 seconds */
coap_add_option(response, COAP_OPTION_MAX_OFE,
coap_encode_var_bytes(buf, 30), buf);
} else {
coap_add_option(response, COAP_OPTION_SUBSCRIPTION,
coap_encode_var_bytes(buf, ctx->observe), buf);
if (token->length)
coap_add_option(response, COAP_OPTION_TOKEN, token->length, token->s);
/* indicate that value is good for at least 30 seconds */
coap_add_option(response, COAP_OPTION_MAX_OFE,
coap_encode_var_bytes(buf, 30), buf);
}
/* calculate current time */
-1
View File
@@ -68,7 +68,6 @@
/* option types from draft-hartke-coap-observe-01 */
#define COAP_OPTION_SUBSCRIPTION 10 /* E, uint, 0-2 B, - */
#define COAP_OPTION_MAX_OFE 14 /* E, uint, 0-4 B, 0 */
/* selected option types from draft-core-block-04 */