Compare commits

...

2 Commits

Author SHA1 Message Date
68a4afdb12 improve clarity on log messages 2019-11-09 20:28:25 +01:00
c3d3c46107 remove some no longer used structures 2019-11-09 20:27:50 +01:00
2 changed files with 1 additions and 11 deletions

View File

@@ -15,18 +15,8 @@ String devname; // Device identifier for MQTT
struct Settings {
String name = "";
String ip = "";
uint8_t mode = 0, // Current animation effect
offset = 0,
brightness = 20; // Default brightness (range 0-255)
long color = 0x00A4B3; // Starting color
} settings;
struct State {
String text = "";
uint8_t mode = 0;
long color = 0x00A4B3; // Starting color
} state;
/*
* Debugging might be nice sometimes
*/

View File

@@ -126,7 +126,7 @@ void WifiMQTTconnect() {
mqtt_subscribe(MQTT_PREFIX "ping"); // global topic: send a ping, and we will respond with some device info
mqtt_subscribe(deviceprefix + "#");
mqtt_publish(deviceprefix + "log", "Booting up " + settings.name + " running v" + FW_VERSION + " at " + settings.ip);
mqtt_publish(deviceprefix + "log", "Connected " + settings.name + " running v" + FW_VERSION + " at " + settings.ip);
mqtt_publish(deviceprefix + "log", "Free Heap: " + String(ESP.getFreeHeap()));
}