- fixes a bug with special-chars in rainbow mode
- adds a new key "pos" to the custompage api where you can define the position of your page in the loop.

closes #13
This commit is contained in:
Stephan Mühl
2023-03-25 14:09:00 +01:00
parent 8fd80f40b6
commit 5d0967068b
8 changed files with 29 additions and 20 deletions

View File

@@ -189,14 +189,15 @@ void connect()
{
mqtt.onMessage(onMqttMessage);
mqtt.onConnected(onMqttConnected);
if (MQTT_USER == "" || MQTT_PASS == "")
{
Serial.println("Connecting to MQTT");
Serial.println("Connecting to MQTT w/o login");
mqtt.begin(MQTT_HOST.c_str(), MQTT_PORT, nullptr, nullptr, MQTT_PREFIX.c_str());
}
else
{
Serial.println("Connecting to MQTT");
Serial.println("Connecting to MQTT with login");
mqtt.begin(MQTT_HOST.c_str(), MQTT_PORT, MQTT_USER.c_str(), MQTT_PASS.c_str(), MQTT_PREFIX.c_str());
}
}