Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Commit dbe480d

Browse files
committed
demos/tests: Increase TRANSPORT_SEND_RECV_TIMEOUT for ESP32-XX targets
1 parent 62387df commit dbe480d

File tree

13 files changed

+57
-4
lines changed

13 files changed

+57
-4
lines changed

demos/coreMQTT/mqtt_demo_mutual_auth.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@
217217
/**
218218
* @brief Transport timeout in milliseconds for transport send and receive.
219219
*/
220-
#define mqttexampleTRANSPORT_SEND_RECV_TIMEOUT_MS ( 500U )
220+
#ifndef mqttexampleTRANSPORT_SEND_RECV_TIMEOUT_MS
221+
#define mqttexampleTRANSPORT_SEND_RECV_TIMEOUT_MS ( 500U )
222+
#endif
221223

222224
/**
223225
* @brief Milliseconds per second.

demos/ota/ota_demo_core_http/ota_demo_core_http.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@
177177
/**
178178
* @brief Transport timeout in milliseconds for transport send and receive.
179179
*/
180-
#define otaexampleMQTT_TRANSPORT_SEND_RECV_TIMEOUT_MS ( 500U )
180+
#ifndef otaexampleMQTT_TRANSPORT_SEND_RECV_TIMEOUT_MS
181+
#define otaexampleMQTT_TRANSPORT_SEND_RECV_TIMEOUT_MS ( 500U )
182+
#endif
181183

182184
/**
183185
* @brief The common prefix for all OTA topics.

demos/ota/ota_demo_core_mqtt/ota_demo_core_mqtt.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@
137137
/**
138138
* @brief Transport timeout in milliseconds for transport send and receive.
139139
*/
140-
#define otaexampleMQTT_TRANSPORT_SEND_RECV_TIMEOUT_MS ( 500U )
140+
#ifndef otaexampleMQTT_TRANSPORT_SEND_RECV_TIMEOUT_MS
141+
#define otaexampleMQTT_TRANSPORT_SEND_RECV_TIMEOUT_MS ( 500U )
142+
#endif
141143

142144
/**
143145
* @brief The delay used in the main OTA Demo task loop to periodically output

tests/integration_test/core_mqtt_system_test.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@
232232
/**
233233
* @brief Transport timeout in milliseconds for transport send and receive.
234234
*/
235-
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 200U )
235+
#ifndef TRANSPORT_SEND_RECV_TIMEOUT_MS
236+
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 200U )
237+
#endif
236238

237239
/**
238240
* @brief Timeout for receiving CONNACK packet in milli seconds.

vendors/espressif/boards/esp32/aws_demos/config_files/mqtt_demo_mutual_auth_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,9 @@
125125
* #define democonfigMQTT_MAX_DEMO_COUNT ( insert here )
126126
*/
127127

128+
/**
129+
* @brief Transport timeout in milliseconds for transport send and receive.
130+
*/
131+
#define mqttexampleTRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000U )
132+
128133
#endif /* MQTT_DEMO_MUTUAL_AUTH_CONFIG_H */

vendors/espressif/boards/esp32/aws_demos/config_files/ota_demo_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
#define otapalconfigCODE_SIGNING_CERTIFICATE "Insert code signing certificate..."
3535
#endif
3636

37+
/**
38+
* @brief Transport timeout in milliseconds for transport send and receive.
39+
*/
40+
#define otaexampleMQTT_TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000U )
41+
3742
/**
3843
* @brief Major version of the firmware.
3944
*

vendors/espressif/boards/esp32/aws_tests/config_files/iot_mqtt_agent_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,9 @@
110110
*/
111111
#define mqttconfigRX_BUFFER_SIZE ( 1024 + 128 )
112112

113+
/**
114+
* @brief Transport timeout in milliseconds for transport send and receive.
115+
*/
116+
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000U )
117+
113118
#endif /* _AWS_MQTT_AGENT_CONFIG_H_ */

vendors/espressif/boards/esp32s2/aws_demos/config_files/mqtt_demo_mutual_auth_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,9 @@
125125
* #define democonfigMQTT_MAX_DEMO_COUNT ( insert here )
126126
*/
127127

128+
/**
129+
* @brief Transport timeout in milliseconds for transport send and receive.
130+
*/
131+
#define mqttexampleTRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000U )
132+
128133
#endif /* MQTT_DEMO_MUTUAL_AUTH_CONFIG_H */

vendors/espressif/boards/esp32s2/aws_demos/config_files/ota_demo_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
#define otapalconfigCODE_SIGNING_CERTIFICATE "Insert code signing certificate..."
3535
#endif
3636

37+
/**
38+
* @brief Transport timeout in milliseconds for transport send and receive.
39+
*/
40+
#define otaexampleMQTT_TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000U )
41+
3742
/**
3843
* @brief Major version of the firmware.
3944
*

vendors/espressif/boards/esp32s2/aws_tests/config_files/iot_mqtt_agent_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,9 @@
110110
*/
111111
#define mqttconfigRX_BUFFER_SIZE ( 1024 + 128 )
112112

113+
/**
114+
* @brief Transport timeout in milliseconds for transport send and receive.
115+
*/
116+
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000U )
117+
113118
#endif /* _AWS_MQTT_AGENT_CONFIG_H_ */

vendors/espressif/boards/esp32s3/aws_demos/config_files/mqtt_demo_mutual_auth_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,9 @@
125125
* #define democonfigMQTT_MAX_DEMO_COUNT ( insert here )
126126
*/
127127

128+
/**
129+
* @brief Transport timeout in milliseconds for transport send and receive.
130+
*/
131+
#define mqttexampleTRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000U )
132+
128133
#endif /* MQTT_DEMO_MUTUAL_AUTH_CONFIG_H */

vendors/espressif/boards/esp32s3/aws_demos/config_files/ota_demo_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
#define otapalconfigCODE_SIGNING_CERTIFICATE "Insert code signing certificate..."
3535
#endif
3636

37+
/**
38+
* @brief Transport timeout in milliseconds for transport send and receive.
39+
*/
40+
#define otaexampleMQTT_TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000U )
41+
3742
/**
3843
* @brief Major version of the firmware.
3944
*

vendors/espressif/boards/esp32s3/aws_tests/config_files/iot_mqtt_agent_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,9 @@
110110
*/
111111
#define mqttconfigRX_BUFFER_SIZE ( 1024 + 128 )
112112

113+
/**
114+
* @brief Transport timeout in milliseconds for transport send and receive.
115+
*/
116+
#define TRANSPORT_SEND_RECV_TIMEOUT_MS ( 1000U )
117+
113118
#endif /* _AWS_MQTT_AGENT_CONFIG_H_ */

0 commit comments

Comments
 (0)