mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
change queue size for standalone
This commit is contained in:
@@ -171,11 +171,14 @@ class Mqtt {
|
||||
static std::list<QueuedMqttMessage> mqtt_messages_;
|
||||
|
||||
static AsyncMqttClient * mqttClient_;
|
||||
static uint16_t mqtt_message_id_;
|
||||
|
||||
// static size_t maximum_mqtt_messages_;
|
||||
static uint16_t mqtt_message_id_;
|
||||
#if defined(EMSESP_STANDALONE)
|
||||
static constexpr size_t MAX_MQTT_MESSAGES = 70; // size of queue
|
||||
#else
|
||||
static constexpr size_t MAX_MQTT_MESSAGES = 20; // size of queue
|
||||
#endif
|
||||
|
||||
static constexpr size_t MAX_MQTT_MESSAGES = 20; // size of queue
|
||||
static constexpr uint32_t MQTT_PUBLISH_WAIT = 200; // delay between sending publishes, to account for large payloads
|
||||
static constexpr uint8_t MQTT_PUBLISH_MAX_RETRY = 3; // max retries for giving up on publishing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user