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)) {