mirror of https://github.com/arendst/Tasmota.git
Merge pull request #3593 from ascillato/patch-1
Added command PUBLISH2 to send retained MQTT msg
This commit is contained in:
commit
c5769094c9
|
@ -659,7 +659,7 @@ bool MqttCommand()
|
||||||
} else {
|
} else {
|
||||||
mqtt_data[0] = '\0';
|
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);
|
// snprintf_P(mqtt_data, sizeof(mqtt_data), S_JSON_COMMAND_SVALUE, command, D_JSON_DONE);
|
||||||
mqtt_data[0] = '\0';
|
mqtt_data[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue