mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-02 16:05:50 +03:00
acknowledge confirmable separate responses
This commit is contained in:
1 parent
783aca9c91
commit
63bfbfaf89
1 file changed
+4
@@ -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)) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user