fix: increase MQTT buffer size and adjust task stack size
This commit is contained in:
		| @@ -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. */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user