mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-16 01:37:45 -04:00
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:
parent
6682dbbc5b
commit
9f6437ca6a
10 changed files with 149 additions and 24 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue