Fix for empty intopic?

https://github.com/toblum/McLighting/issues/52
This commit is contained in:
Tobias Blum
2017-11-05 01:12:51 +01:00
parent a025e0a35a
commit e79524ed8e
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -22,8 +22,8 @@ uint32_t autoParams[][4] = { // color, speed, mode, duration (seconds)
int mqtt_reconnect_retries = 0;
char mqtt_intopic[strlen(HOSTNAME) + 3]; // Topic in will be: <HOSTNAME>/in
char mqtt_outtopic[strlen(HOSTNAME) + 4]; // Topic out will be: <HOSTNAME>/out
char mqtt_intopic[strlen(HOSTNAME) + 4]; // Topic in will be: <HOSTNAME>/in
char mqtt_outtopic[strlen(HOSTNAME) + 5]; // Topic out will be: <HOSTNAME>/out
const char mqtt_clientid[] = "ESP8266Client"; // MQTT ClientID