Skip to content

Commit 95d1c4b

Browse files
committed
Add documentation changes
1 parent f00e888 commit 95d1c4b

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

source/include/core_mqtt.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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>

source/include/core_mqtt_serializer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ typedef enum MQTTStatus
242242
MQTTNoMemory, /**< A provided buffer was too small. */
243243
MQTTSendFailed, /**< The transport send function failed. */
244244
MQTTRecvFailed, /**< The transport receive function failed. */
245-
MQTTBadResponse, /**< An invalid packet was received from the server. */
245+
MQTTBadResponse, /**< An invalid packet was received from the server. It is recommended that application closes the connection. */
246246
MQTTServerRefused, /**< The server refused a CONNECT or SUBSCRIBE. */
247247
MQTTNoDataAvailable, /**< No data available from the transport interface. */
248248
MQTTIllegalState, /**< An illegal state in the state record. */

test/unit-test/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ include( ${MODULE_ROOT_DIR}/mqttFilePaths.cmake )
44
# ==================== Define your project name (edit) ========================
55
set(project_name "core_mqtt")
66

7-
87
# ===================== Create your mock here (edit) ========================
98

109
# list the files to mock here

0 commit comments

Comments
 (0)