From f7445201f4fba1c7533c01d816b4373d9d5435f3 Mon Sep 17 00:00:00 2001 From: jasonpcarroll <23126711+jasonpcarroll@users.noreply.github.com> Date: Fri, 9 Sep 2022 13:05:57 -0700 Subject: [PATCH 1/2] Update core_mqtt.h --- source/include/core_mqtt.h | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/source/include/core_mqtt.h b/source/include/core_mqtt.h index a5f6fdf65..797b57727 100644 --- a/source/include/core_mqtt.h +++ b/source/include/core_mqtt.h @@ -253,7 +253,7 @@ typedef struct MQTTDeserializedInfo /** * @brief Initialize an MQTT context. * - * This function must be called on a #MQTTContext_t before any other function. + * This function must be called on an #MQTTContext_t before any other function. * * @note The #MQTTGetCurrentTimeFunc_t function for querying time must be defined. If * there is no time implementation, it is the responsibility of the application @@ -324,17 +324,9 @@ MQTTStatus_t MQTT_Init( MQTTContext_t * pContext, /* @[declare_mqtt_init] */ /** - * @brief Initialize an MQTT context. - * - * This function must be called on a #MQTTContext_t before any other function. + * @brief Initialize an MQTT context for stateful QoS (QoS > 0). * - * @note The #MQTTGetCurrentTimeFunc_t function for querying time must be defined. If - * there is no time implementation, it is the responsibility of the application - * to provide a dummy function to always return 0, provide 0 timeouts for - * all calls to #MQTT_Connect, #MQTT_ProcessLoop, and #MQTT_ReceiveLoop and configure - * the #MQTT_RECV_POLLING_TIMEOUT_MS and #MQTT_SEND_RETRY_TIMEOUT_MS configurations - * to be 0. This will result in loop functions running for a single iteration, and - * #MQTT_Connect relying on #MQTT_MAX_CONNACK_RECEIVE_RETRY_COUNT to receive the CONNACK packet. + * This function must be called on an #MQTTContext_t after MQTT_Init and before any other function. * * @param[in] pContext The context to initialize. * @param[in] pOutgoingPublishRecords Pointer to memory which will be used to store state of outgoing From 16b5e4ce0c6d5e988f7ce47577529f7b9af3db79 Mon Sep 17 00:00:00 2001 From: jasonpcarroll <23126711+jasonpcarroll@users.noreply.github.com> Date: Fri, 9 Sep 2022 13:58:53 -0700 Subject: [PATCH 2/2] Update core_mqtt.h --- source/include/core_mqtt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/include/core_mqtt.h b/source/include/core_mqtt.h index 797b57727..705e14bb0 100644 --- a/source/include/core_mqtt.h +++ b/source/include/core_mqtt.h @@ -324,7 +324,7 @@ MQTTStatus_t MQTT_Init( MQTTContext_t * pContext, /* @[declare_mqtt_init] */ /** - * @brief Initialize an MQTT context for stateful QoS (QoS > 0). + * @brief Initialize an MQTT context for QoS > 0. * * This function must be called on an #MQTTContext_t after MQTT_Init and before any other function. *