diff --git a/main/config.h b/main/config.h index 19d12fd..db8fc0d 100644 --- a/main/config.h +++ b/main/config.h @@ -116,7 +116,7 @@ unsigned long requestWifiScanTime = 0; #define WIFI_SCAN_PERIOD 120000 unsigned lastWifiScanMillis; -const PROGMEM char *m2mqtt_version = "2023.11.2"; +const PROGMEM char *m2mqtt_version = "2023.11.3"; // Define global variables for files #ifdef ESP32 diff --git a/main/main.cpp b/main/main.cpp index c21c118..e7c8d34 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2615,9 +2615,10 @@ String getId() snprintf(chipID, 23, "%llX", ESP.getEfuseMac()); return String(chipID); #else - uint32_t chipID = ESP.getChipId(); + String chipID = WiFi.macAddress(); + chipID.replace(":", ""); + return chipID; #endif - return String(chipID, HEX); } // Check if header is present and correct