HOSTNAME is %s

This commit is contained in:
Debashish Sahu 2018-12-03 16:42:06 -05:00
parent d2fd2a9543
commit 267a8f0f2e

View file

@ -426,7 +426,7 @@ void setup() {
// Configure MQTT
// ***************************************************************************
#ifdef ENABLE_MQTT_HOSTNAME_CHIPID
snprintf(mqtt_clientid, 64, "%u-%08X", HOSTNAME, ESP.getChipId());
snprintf(mqtt_clientid, 64, "%s-%08X", HOSTNAME, ESP.getChipId());
#endif
#ifdef ENABLE_MQTT