mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 11:46:31 +00:00
Add SetOption147
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:
parent
3cb2c7c497
commit
8455a3fd3c
@ -167,7 +167,11 @@ void SerialBridgeInput(void) {
|
|||||||
}
|
}
|
||||||
ResponseJsonEnd();
|
ResponseJsonEnd();
|
||||||
|
|
||||||
MqttPublishPrefixTopicRulesProcess_P(RESULT_OR_TELE, PSTR(D_JSON_SSERIALRECEIVED));
|
if (Settings->flag6.mqtt_sserialreceived) { // SetOption147 (MQTT) Enable publish SSerialReceived MQTT messages. If disabled, use event rules instead.
|
||||||
|
MqttPublishPrefixTopicRulesProcess_P(RESULT_OR_TELE, PSTR(D_JSON_SSERIALRECEIVED));
|
||||||
|
} else {
|
||||||
|
XdrvRulesProcess(0);
|
||||||
|
}
|
||||||
serial_bridge_in_byte_counter = 0;
|
serial_bridge_in_byte_counter = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user