Make function getClientId const

This commit is contained in:
Thomas Basler 2024-11-10 02:45:42 +01:00
parent 3dc70ab40a
commit 33a9b7454c
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ public:
void unsubscribe(const String& topic);
String getPrefix() const;
String getClientId();
String getClientId() const;
private:
void NetworkEvent(network_event event);

View File

@ -179,7 +179,7 @@ String MqttSettingsClass::getPrefix() const
return Configuration.get().Mqtt.Topic;
}
String MqttSettingsClass::getClientId()
String MqttSettingsClass::getClientId() const
{
String clientId = Configuration.get().Mqtt.ClientId;
if (clientId == "") {