From a2935b87c21cebc1c687ccb41302fb66c1c58e95 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Wed, 19 Nov 2025 23:45:55 +0000 Subject: [PATCH] deviceString for 8266 --- wled00/util.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/wled00/util.cpp b/wled00/util.cpp index 019d24fa..984ee7fc 100644 --- a/wled00/util.cpp +++ b/wled00/util.cpp @@ -1165,8 +1165,12 @@ String getDeviceId() { char macStr[18]; sprintf(macStr, "%02x:%02x:%02x:%02x:%02x:%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); - String macString = String(macStr) + "WLED" + ESP.getChipModel() + ESP.getChipRevision(); - String firstHash = computeSHA1(macString); +#ifdef ESP8266 + String deviceString = String(macStr) + "WLED" + ESP.getCoreVersion(); +#else + String macString = String(macStr) + "WLED" + ESP. getChipModel() + ESP.getChipRevision(); +#endif + String firstHash = computeSHA1(deviceString); // Second hash: SHA1 of the first hash String secondHash = computeSHA1(firstHash);