mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 03:06:33 +00:00
Added command PUBLISH2 to send retained MQTT msg
Solves #2861, #2851 and #3428
This commit is contained in:
parent
cb8dec9622
commit
314db26f54
@ -659,7 +659,7 @@ bool MqttCommand()
|
||||
} else {
|
||||
mqtt_data[0] = '\0';
|
||||
}
|
||||
MqttPublishDirect(stemp1, false);
|
||||
MqttPublishDirect(stemp1, (index==2) );
|
||||
// snprintf_P(mqtt_data, sizeof(mqtt_data), S_JSON_COMMAND_SVALUE, command, D_JSON_DONE);
|
||||
mqtt_data[0] = '\0';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user