v0.39
- 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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user