Adds Kconfig option to configure poll read timeout

A new Kconfig option was added to allow users to configure poll read
timeout.

Closes: https://github.com/espressif/esp-mqtt/issues/245
This commit is contained in:
Rocha Euripedes
2023-02-02 20:52:02 +08:00
parent acab02f2c5
commit 2fa945d0b8
2 changed files with 12 additions and 0 deletions

View File

@@ -17,7 +17,12 @@
#endif
#define MQTT_RECON_DEFAULT_MS (10*1000)
#ifdef CONFIG_MQTT_POLL_READ_TIMEOUT_MS
#define MQTT_POLL_READ_TIMEOUT_MS CONFIG_MQTT_POLL_READ_TIMEOUT_MS
#else
#define MQTT_POLL_READ_TIMEOUT_MS (1000)
#endif
#define MQTT_MSG_ID_INCREMENTAL CONFIG_MQTT_MSG_ID_INCREMENTAL