diff --git a/coap-server.c b/coap-server.c index f3b888a1..f10c24a0 100644 --- a/coap-server.c +++ b/coap-server.c @@ -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 */ diff --git a/pdu.h b/pdu.h index 8dac1e28..19dccc1a 100644 --- a/pdu.h +++ b/pdu.h @@ -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 */