fix merge errors
This commit is contained in:
@@ -104,7 +104,6 @@ void saveSettings()
|
|||||||
#ifdef ULANZI
|
#ifdef ULANZI
|
||||||
Settings.putBool("BAT", SHOW_BAT);
|
Settings.putBool("BAT", SHOW_BAT);
|
||||||
#endif
|
#endif
|
||||||
=======
|
|
||||||
Settings.putBool("SOUND", SOUND_ACTIVE);
|
Settings.putBool("SOUND", SOUND_ACTIVE);
|
||||||
Settings.end();
|
Settings.end();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -213,15 +213,16 @@ void onMqttConnected()
|
|||||||
"/previousapp",
|
"/previousapp",
|
||||||
"/nextapp",
|
"/nextapp",
|
||||||
"/nextapp",
|
"/nextapp",
|
||||||
"/apps"
|
"/apps"};
|
||||||
};
|
|
||||||
|
|
||||||
for (const char *topic : topics)
|
for (const char *topic : topics)
|
||||||
|
{
|
||||||
String fullTopic = prefix + topic;
|
String fullTopic = prefix + topic;
|
||||||
mqtt.subscribe(fullTopic.c_str());
|
mqtt.subscribe(fullTopic.c_str());
|
||||||
}
|
}
|
||||||
Serial.println(F("MQTT Connected"));
|
Serial.println(F("MQTT Connected"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void connect()
|
void connect()
|
||||||
{
|
{
|
||||||
mqtt.onMessage(onMqttMessage);
|
mqtt.onMessage(onMqttMessage);
|
||||||
@@ -264,7 +265,6 @@ void MQTTManager_::setup()
|
|||||||
device.setAvailability(true);
|
device.setAvailability(true);
|
||||||
device.enableSharedAvailability();
|
device.enableSharedAvailability();
|
||||||
device.enableLastWill();
|
device.enableLastWill();
|
||||||
|
|
||||||
|
|
||||||
String uniqueIDWithSuffix;
|
String uniqueIDWithSuffix;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user