From 9fe2365328a54cbd848aaa6aefc7071b45223719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sat, 25 Nov 2017 22:34:13 +0100 Subject: [PATCH] Changed default hostname to ESPURNA_XXXXXX --- code/espurna/utils.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/espurna/utils.ino b/code/espurna/utils.ino index d0d9af7f..b9ffcb4b 100644 --- a/code/espurna/utils.ino +++ b/code/espurna/utils.ino @@ -11,7 +11,7 @@ Ticker _defer_reset; String getIdentifier() { char buffer[20]; - snprintf_P(buffer, sizeof(buffer), PSTR("%s_%06X"), DEVICE, ESP.getChipId()); + snprintf_P(buffer, sizeof(buffer), PSTR("ESPURNA_%06X"), ESP.getChipId()); return String(buffer); } @@ -54,7 +54,7 @@ String buildTime() { char buffer[20]; snprintf_P( - buffer, sizeof(buffer), PSTR("%04d/%02d/%02d %02d:%02d:%02d"), + buffer, sizeof(buffer), PSTR("%04d-%02d-%02d %02d:%02d:%02d"), year, month, day, hour, minute, second );