From cbc311e9c26292fca919b6f5a88386fa95b3f8d6 Mon Sep 17 00:00:00 2001 From: Barbudor Date: Wed, 6 Sep 2023 22:28:49 +0200 Subject: [PATCH] Update MQTT.md --- docs/MQTT.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/MQTT.md b/docs/MQTT.md index b2c19e8609..dc385853bd 100644 --- a/docs/MQTT.md +++ b/docs/MQTT.md @@ -220,9 +220,12 @@ To use it you must [compile your build](Compile-your-build). Add the following t #define SUPPORT_MQTT_EVENT #endif ``` -To increase the maximum MQTT message size that Tasmota is willing to process, increase the following constant by setting it in `user_config_override.h`: +To default maximum MQTT message size that Tasmota can process is 256 bytes. You can increase it by redefining the following constant in `user_config_override.h`: ``` -#define RULE_MAX_MQTT_EVENTSZ 256 +#ifdef RULE_MAX_MQTT_EVENTSZ +#undef RULE_MAX_MQTT_EVENTSZ +#endif +#define RULE_MAX_MQTT_EVENTSZ 512 ``` ### Subscribe