   //Manual Wifi
   //WiFi.begin(WIFI_SSID, WIFI_PWD);
   String hostname(HOSTNAME);
-  hostname += String(ESP.getChipId(), HEX);
+  hostname += ESPChipID();
+#if defined(ESP8266)
   WiFi.hostname(hostname);
+#else
+  MDNS.begin((char *)&hostname);
+#endif
 
 
   int counter = 0;

OverlayCallback overlays[] = { drawHeaderOverlay };
int numberOfOverlays = 1;

void setup() {
    // Turn On VCC
  //pinMode(D4, OUTPUT);


// Display Settings
const int I2C_DISPLAY_ADDRESS = 0x3c;
#if defined(ESP8266)
const int SDA_PIN = D3;
const int SDC_PIN = D4;
#else
const int SDA_PIN = 5; //D3;
const int SDC_PIN = 4; //D4;
#endif

// TimeClient settings
const float UTC_OFFSET = 2;
