Add SetOption157

Add SetOption147  (MQTT) Enable publish SSerialReceived MQTT messages. If disabled, use event rules instead.
If it is disabled, tasmota will not publish an MQTT message every time a SSerialReceived event fires. Use rules to control how and when publish these messages.
This commit is contained in:
ortegafernando 2022-09-21 09:27:19 +02:00 committed by GitHub
parent a79ab7275c
commit a6d4fe1e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -283,6 +283,9 @@ 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)
#endif
#ifndef MQTT_LWT_OFFLINE
#define MQTT_LWT_OFFLINE "Offline" // MQTT LWT offline topic message
#endif