Make function getClientId const
This commit is contained in:
parent
3dc70ab40a
commit
33a9b7454c
@ -20,7 +20,7 @@ public:
|
|||||||
void unsubscribe(const String& topic);
|
void unsubscribe(const String& topic);
|
||||||
|
|
||||||
String getPrefix() const;
|
String getPrefix() const;
|
||||||
String getClientId();
|
String getClientId() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void NetworkEvent(network_event event);
|
void NetworkEvent(network_event event);
|
||||||
|
|||||||
@ -179,7 +179,7 @@ String MqttSettingsClass::getPrefix() const
|
|||||||
return Configuration.get().Mqtt.Topic;
|
return Configuration.get().Mqtt.Topic;
|
||||||
}
|
}
|
||||||
|
|
||||||
String MqttSettingsClass::getClientId()
|
String MqttSettingsClass::getClientId() const
|
||||||
{
|
{
|
||||||
String clientId = Configuration.get().Mqtt.ClientId;
|
String clientId = Configuration.get().Mqtt.ClientId;
|
||||||
if (clientId == "") {
|
if (clientId == "") {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user