Added command PUBLISH2 to send retained MQTT msg

Solves #2861, #2851 and #3428
This commit is contained in:
Adrian Scillato 2018-08-25 17:46:34 -03:00 committed by GitHub
parent cb8dec9622
commit 314db26f54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';
}