Setting unique hostname with chipID
This commit is contained in:
parent
3ba1dad518
commit
709706c2d1
@ -17,6 +17,7 @@
|
||||
#include "d_helper.h"
|
||||
#include "FS.h"
|
||||
|
||||
#define HOSTNAME "LibreMetric-"
|
||||
|
||||
//################# DISPLAY CONNECTIONS ################
|
||||
// LED Matrix Pin -> ESP8266 Pin
|
||||
@ -66,10 +67,11 @@ void setup() {
|
||||
}
|
||||
|
||||
display_message("Wi-Fi");
|
||||
|
||||
WiFiManager wifiManager;
|
||||
// reset saved settings
|
||||
// wifiManager.resetSettings();
|
||||
String hostname(HOSTNAME);
|
||||
hostname += String(ESP.getChipId(), HEX);
|
||||
WiFi.hostname(hostname);
|
||||
|
||||
if (!MDNS.begin("ESP8266")) {
|
||||
DEBUG_PRINTLN("Error setting up MDNS responder!");
|
||||
while(1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user