Merge pull request #3593 from ascillato/patch-1

Added command PUBLISH2 to send retained MQTT msg
This commit is contained in:
Theo Arends 2018-08-25 23:26:29 +02:00 committed by GitHub
commit c5769094c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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