deviceString for 8266

This commit is contained in:
Will Tatam
2025-11-19 23:45:55 +00:00
parent c1ce1d8aba
commit a2935b87c2

View File

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