@@ -1180,7 +1180,8 @@ MQTTStatus_t MQTT_Disconnect( MQTTContext_t * pContext,
11801180 * @return #MQTTBadParameter if context is NULL;<br>
11811181 * #MQTTRecvFailed if a network error occurs during reception;<br>
11821182 * #MQTTSendFailed if a network error occurs while sending an ACK or PINGREQ;<br>
1183- * #MQTTBadResponse if an invalid packet is received;<br>
1183+ * #MQTTBadResponse if an invalid packet is received. It is recommended that the application calls
1184+ * #MQTT_Disconnect and re-connects with a clean session;<br>
11841185 * #MQTTKeepAliveTimeout if the server has not sent a PINGRESP before
11851186 * #MQTT_PINGRESP_TIMEOUT_MS milliseconds;<br>
11861187 * #MQTTIllegalState if an incoming QoS 1/2 publish or ack causes an
@@ -1189,7 +1190,7 @@ MQTTStatus_t MQTT_Disconnect( MQTTContext_t * pContext,
11891190 * incomplete data; it should be called again (probably after a delay);<br>
11901191 * #MQTTStatusNotConnected if the connection is not established yet and a PING
11911192 * or an ACK is being sent.<br>
1192- * #MQTTStatusDisconnectPending if the user is expected to call MQTT_Disconnect
1193+ * #MQTTStatusDisconnectPending if the user is expected to call # MQTT_Disconnect
11931194 * before calling any other API<br>
11941195 * #MQTTEventCallbackFailed if the user provided #MQTTEventCallback_t callback fails to process the received packet;<br>
11951196 * #MQTTSuccess on success.<br>
@@ -1243,7 +1244,8 @@ MQTTStatus_t MQTT_ProcessLoop( MQTTContext_t * pContext );
12431244 * @return #MQTTBadParameter if context is NULL;<br>
12441245 * #MQTTRecvFailed if a network error occurs during reception;<br>
12451246 * #MQTTSendFailed if a network error occurs while sending an ACK or PINGREQ;<br>
1246- * #MQTTBadResponse if an invalid packet is received;<br>
1247+ * #MQTTBadResponse if an invalid packet is received. It is recommended that the application calls
1248+ * #MQTT_Disconnect and re-connects with a clean session;<br>
12471249 * #MQTTKeepAliveTimeout if the server has not sent a PINGRESP before
12481250 * #MQTT_PINGRESP_TIMEOUT_MS milliseconds;<br>
12491251 * #MQTTIllegalState if an incoming QoS 1/2 publish or ack causes an
@@ -1252,7 +1254,7 @@ MQTTStatus_t MQTT_ProcessLoop( MQTTContext_t * pContext );
12521254 * incomplete data; it should be called again (probably after a delay);<br>
12531255 * #MQTTStatusNotConnected if the connection is not established yet and a PING
12541256 * or an ACK is being sent.<br>
1255- * #MQTTStatusDisconnectPending if the user is expected to call MQTT_Disconnect
1257+ * #MQTTStatusDisconnectPending if the user is expected to call # MQTT_Disconnect
12561258 * before calling any other API<br>
12571259 * #MQTTEventCallbackFailed if the user provided #MQTTEventCallback_t callback fails to process the received packet;<br>
12581260 * #MQTTSuccess on success.<br>
0 commit comments