From 84b90f9a0cb9b109f6feabf47661028ceb796714 Mon Sep 17 00:00:00 2001 From: Martin Kirsche Date: Sat, 14 Sep 2019 14:38:49 +0200 Subject: [PATCH] Fix documentation of MQTTSNPacket_decode Added a documentation for the missing parameters buf and buflen and removed the non-existing parameter getcharfn. Signed-off-by: Martin Kirsche --- MQTTSNPacket/src/MQTTSNPacket.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MQTTSNPacket/src/MQTTSNPacket.c b/MQTTSNPacket/src/MQTTSNPacket.c index a788b78..46f8520 100644 --- a/MQTTSNPacket/src/MQTTSNPacket.c +++ b/MQTTSNPacket/src/MQTTSNPacket.c @@ -83,7 +83,8 @@ int MQTTSNPacket_encode(unsigned char* buf, int length) /** * Obtains the MQTT-SN packet length from received data - * @param getcharfn pointer to function to read the next character from the data source + * @param buf the buffer that contains the MQTT-SN packet + * @param buflen the length in bytes of the supplied buffer * @param value the decoded length returned * @return the number of bytes read from the socket */