From bde06621bd66e1c9540abf84eccb0c9b3a7cb110 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Thu, 31 Aug 2023 08:29:08 +0200 Subject: [PATCH] add log message for mqtt low memory --- src/mqtt.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mqtt.cpp b/src/mqtt.cpp index e0ddda2c7..2b931be8c 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -598,7 +598,8 @@ bool Mqtt::queue_message(const uint8_t operation, const std::string & topic, con mqtt_message_id_++; mqtt_publish_fails_++; } - return false; // quit, not using MQTT + LOG_DEBUG("%s failed: low memory", operation == Operation::PUBLISH ? "Publish" : operation == Operation::SUBSCRIBE ? "Subscribe" : "Unsubscribe"); + return false; // quit } uint16_t packet_id = 0;