Update MQTT demo timeout and record length (#1030)

* Update MQTT plain text demo timeout and record length

* Update Helper functions

* Update timeout comment

* Update Readme with more details
This commit is contained in:
Monika Singh 2023-07-18 12:48:12 +05:30 committed by GitHub
parent 6682dbbc5b
commit 9f6437ca6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 149 additions and 24 deletions

View file

@ -184,8 +184,9 @@
/**
* @brief Timeout for MQTT_ProcessLoop in milliseconds.
* Refer to FreeRTOS-Plus/Demo/coreMQTT_Windows_Simulator/readme.txt for more details.
*/
#define mqttexamplePROCESS_LOOP_TIMEOUT_MS ( 5000U )
#define mqttexamplePROCESS_LOOP_TIMEOUT_MS ( 2000U )
/**
* @brief Keep alive time reported to the broker while establishing
@ -220,14 +221,18 @@
/**
* @brief The length of the outgoing publish records array used by the coreMQTT
* library to track QoS > 0 packet ACKS for outgoing publishes.
* Number of publishes = ulMaxPublishCount * mqttexampleTOPIC_COUNT
* Update in ulMaxPublishCount needs updating mqttexampleOUTGOING_PUBLISH_RECORD_LEN.
*/
#define mqttexampleOUTGOING_PUBLISH_RECORD_LEN ( 10U )
#define mqttexampleOUTGOING_PUBLISH_RECORD_LEN ( 15U )
/**
* @brief The length of the incoming publish records array used by the coreMQTT
* library to track QoS > 0 packet ACKS for incoming publishes.
* Number of publishes = ulMaxPublishCount * mqttexampleTOPIC_COUNT
* Update in ulMaxPublishCount needs updating mqttexampleOUTGOING_PUBLISH_RECORD_LEN.
*/
#define mqttexampleINCOMING_PUBLISH_RECORD_LEN ( 10U )
#define mqttexampleINCOMING_PUBLISH_RECORD_LEN ( 15U )
/**
* Provide default values for undefined configuration settings.