From 63bfbfaf89e104f4c857359b453d41604a027841 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Thu, 8 Mar 2012 01:35:03 +0100 Subject: [PATCH] acknowledge confirmable separate responses --- examples/client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/client.c b/examples/client.c index c866c485..e881613d 100644 --- a/examples/client.c +++ b/examples/client.c @@ -267,6 +267,10 @@ message_handler(struct coap_context_t *ctx, } #endif + /* acknowledge received response if confirmable (TODO: check Token) */ + if (received->hdr->type == COAP_MESSAGE_CON) + coap_send_ack(ctx, remote, received); + /* output the received data, if any */ if (received->hdr->code == COAP_RESPONSE_CODE(205)) {