From 949d32da86325f5941fd9df593590ddd3b947494 Mon Sep 17 00:00:00 2001 From: jcmichelou Date: Mon, 28 May 2018 16:31:06 +0200 Subject: [PATCH] net.h: Fix documentation of coap_context_set_keepalive() --- include/coap/net.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/coap/net.h b/include/coap/net.h index 855fe7a1..c684f9e5 100644 --- a/include/coap/net.h +++ b/include/coap/net.h @@ -356,8 +356,12 @@ coap_context_set_pki_root_cas(coap_context_t *context, * For reliable protocols, a PING message will be sent. If a PONG has not * been received before the next PING is due to be sent, the session will * considered as disconnected. - * For unreliable protocols, an empty packet is sent * + * @param context The coap_context_t object. + * @param seconds Number of seconds for the inactivity timer, or zero + * to disable CoAP-level keepalive messages. + * + * @return 1 if successful, else 0 */ void coap_context_set_keepalive(coap_context_t *context, unsigned int seconds);