From cd2656b8ad4b80082f796be88e6799f91748dbb9 Mon Sep 17 00:00:00 2001 From: ortegafernando Date: Wed, 21 Sep 2022 21:39:45 +0200 Subject: [PATCH] Setoption147 Setoption147 (MQTT) Disable publish SSerialReceived MQTT messages. If disabled, you must use event trigger rules instead. If it is activated, tasmota will not publish a MQTT message every time a SSerialReceived event fires. Use rules to control "what, how and when" publish these messages. --- tasmota/include/tasmota_globals.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/include/tasmota_globals.h b/tasmota/include/tasmota_globals.h index 3075e6715..e0ff3de01 100644 --- a/tasmota/include/tasmota_globals.h +++ b/tasmota/include/tasmota_globals.h @@ -283,8 +283,8 @@ String EthernetMacAddress(void); #ifndef MQTT_CLEAN_SESSION #define MQTT_CLEAN_SESSION 1 // 0 = No clean session, 1 = Clean session (default) #endif -#ifndef MQTT_SSERIALRECEIVED -#define MQTT_SSERIALRECEIVED 1 // 0 = Disable sserialreceived mqtt messages, 1 = Enable sserialreceived mqtt messages (default) +#ifndef MQTT_DISABLE_SSERIALRECEIVED +#define MQTT_DISABLE_SSERIALRECEIVED 0 // 1 = Disable sserialreceived mqtt messages, 0 = Enable sserialreceived mqtt messages (default) #endif #ifndef MQTT_LWT_OFFLINE #define MQTT_LWT_OFFLINE "Offline" // MQTT LWT offline topic message