move generateClientId()

This commit is contained in:
proddy
2024-02-14 14:47:29 +01:00
parent d3fadd7081
commit 49d749e89f
3 changed files with 9 additions and 14 deletions

View File

@@ -4,7 +4,6 @@
#include "StatefulService.h"
#include "HttpEndpoint.h"
#include "FSPersistence.h"
#include "ESPUtils.h"
#include <espMqttClient.h>
@@ -39,13 +38,6 @@
#define FACTORY_MQTT_PASSWORD ""
#endif
#ifndef FACTORY_MQTT_CLIENT_ID
#define FACTORY_MQTT_CLIENT_ID generateClientId()
static String generateClientId() {
return ESPUtils::defaultDeviceValue("esp32-");
}
#endif
#ifndef FACTORY_MQTT_KEEP_ALIVE
#define FACTORY_MQTT_KEEP_ALIVE 16
#endif