From fc8cd9ff6a1fe61e6371dc5b2d6945f6de210ef8 Mon Sep 17 00:00:00 2001 From: Ken Bannister Date: Tue, 15 Aug 2017 12:51:04 -0400 Subject: [PATCH] net/gcoap: Add module documentation to mark a message confirmable --- sys/include/net/gcoap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/include/net/gcoap.h b/sys/include/net/gcoap.h index efb3153b1769..4340d9cf989b 100644 --- a/sys/include/net/gcoap.h +++ b/sys/include/net/gcoap.h @@ -92,9 +92,11 @@ * * Allocate a buffer and a coap_pkt_t for the request. * - * If there is a payload, follow the three steps below. + * If there is a payload, follow the steps below. * * -# Call gcoap_req_init() to initialize the request. + * -# Optionally, mark the request confirmable by calling + * coap_hdr_set_type() with COAP_TYPE_CON. * -# Write the request payload, starting at the updated _payload_ pointer * in the coap_pkt_t. * -# Call gcoap_finish(), which updates the packet for the payload.