Compare commits
	
		
			2 Commits
		
	
	
		
			0449f02b0e
			...
			68a4afdb12
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 68a4afdb12 | |||
| c3d3c46107 | 
| @@ -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 | ||||
|  */ | ||||
|   | ||||
| @@ -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())); | ||||
|  | ||||
|   } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user