From bba4073a4f0611d6ce879bcd5406c8a585710a33 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sat, 26 May 2018 00:59:37 +0300 Subject: [PATCH] Do not use underscore in SSID / hostname --- code/espurna/config/defaults.h | 2 +- code/espurna/utils.ino | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/espurna/config/defaults.h b/code/espurna/config/defaults.h index 8a5a37f2..b16a466a 100644 --- a/code/espurna/config/defaults.h +++ b/code/espurna/config/defaults.h @@ -399,7 +399,7 @@ // General // ----------------------------------------------------------------------------- -// Default hostname will be ESPURNA_XXXXXX, where XXXXXX is last 3 octets of chipID +// Default hostname will be ESPURNA-XXXXXX, where XXXXXX is last 3 octets of chipID #ifndef HOSTNAME #define HOSTNAME "" #endif diff --git a/code/espurna/utils.ino b/code/espurna/utils.ino index 7eaee736..e6850152 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"), APP_NAME, ESP.getChipId()); + snprintf_P(buffer, sizeof(buffer), PSTR("%s-%06X"), APP_NAME, ESP.getChipId()); return String(buffer); }