acknowledge confirmable separate responses

This commit is contained in:
Olaf Bergmann committed 2012-03-08 01:35:03 +01:00
1 parent 783aca9c91
commit 63bfbfaf89
1 file changed
+4
+4
View File
@@ -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)) {