Browse Source

Merge pull request #889 from mcspr/hyphens

Do not use underscore in SSID / hostname
rfm69
Xose Pérez 6 years ago
committed by GitHub
parent
commit
e54b5aba0d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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
// -----------------------------------------------------------------------------
// 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


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

@ -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);
}


Loading…
Cancel
Save