Include build date into web interface

This commit is contained in:
Mathieu Maret 2016-04-10 00:37:41 +02:00
parent ae6e03d67e
commit beae8b335b
2 changed files with 2 additions and 1 deletions

View File

@ -156,7 +156,7 @@ void MqttChangeGpioValue(int gpio, int value) {
void MqttCheckSubscription() {
if (MqttConnect() == 0) {
Adafruit_MQTT_Subscribe *subscription;
while (subscription = mqtt->readSubscription(0)) {
while ((subscription = mqtt->readSubscription(0))) {
int gpio = getGpioFromSubscription(subscription);
SKETCH_DEBUG_PRINT("Got Subscription for gpio ");
SKETCH_DEBUG_PRINTLN(gpio);

View File

@ -33,6 +33,7 @@ void WebHandleRoot() {
#endif
"Free space: " + ESP.getFreeSketchSpace() + "<br/>"
"Free heap: " + ESP.getFreeHeap() + "<br/>"
"Build the " + __DATE__ + " at " + __TIME__ + "<br/>"
"</fieldset>"
);
}