From e89bb1d547520d2631d802fe524a0a24799090ab Mon Sep 17 00:00:00 2001 From: Manuel Weiser Date: Tue, 25 Mar 2025 12:02:54 +0100 Subject: [PATCH] fix: increase MQTT buffer size and adjust task stack size --- src/bambu.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bambu.cpp b/src/bambu.cpp index 5ccb6cc..630e196 100644 --- a/src/bambu.cpp +++ b/src/bambu.cpp @@ -624,9 +624,8 @@ bool setupMqtt() { if (client.connect(clientId.c_str(), bambu_username, bambu_accesscode)) { client.setCallback(mqtt_callback); - client.setBufferSize(5120); + client.setBufferSize(10240); client.subscribe((String(topic) + "/report").c_str()); - //client.subscribe(request_topic.c_str()); Serial.println("MQTT-Client initialisiert"); oledShowMessage("Bambu Connected"); @@ -636,7 +635,7 @@ bool setupMqtt() { xTaskCreatePinnedToCore( mqtt_loop, /* Function to implement the task */ "BambuMqtt", /* Name of the task */ - 10240, /* Stack size in words */ + 8192, /* Stack size in words */ NULL, /* Task input parameter */ mqttTaskPrio, /* Priority of the task */ &BambuMqttTask, /* Task handle. */