Do not acknowledge responses to NON-confirmable requests, instead response
is NON-confirmable as well.
This commit is contained in:
Olaf Bergmann committed 2012-03-07 21:47:38 +01:00
1 parent b530c25eb9
commit fbdfa9e4b5
1 file changed
+4 -1
+4 -1
View File
@@ -794,7 +794,10 @@ wellknown_response(coap_context_t *context, coap_pdu_t *request) {
size_t len;
unsigned char buf[2];
resp = coap_pdu_init(COAP_MESSAGE_ACK, COAP_RESPONSE_CODE(205),
resp = coap_pdu_init(request->hdr->type == COAP_MESSAGE_CON
? COAP_MESSAGE_ACK
: COAP_MESSAGE_NON,
COAP_RESPONSE_CODE(205),
request->hdr->id, COAP_MAX_PDU_SIZE);
if (!resp)
return NULL;