Browse Source

Do not use underscore in SSID / hostname

rfm69
Maxim Prokhorov 6 years ago
parent
commit
bba4073a4f
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      code/espurna/config/defaults.h
  2. +1
    -1
      code/espurna/utils.ino

+ 1
- 1
code/espurna/config/defaults.h View File

@ -399,7 +399,7 @@
// General // 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 #ifndef HOSTNAME
#define HOSTNAME "" #define HOSTNAME ""
#endif #endif


+ 1
- 1
code/espurna/utils.ino View File

@ -11,7 +11,7 @@ Ticker _defer_reset;
String getIdentifier() { String getIdentifier() {
char buffer[20]; 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); return String(buffer);
} }


Loading…
Cancel
Save