deviceString for 8266
This commit is contained in:
parent
c1ce1d8aba
commit
a2935b87c2
@ -1165,8 +1165,12 @@ String getDeviceId() {
|
|||||||
char macStr[18];
|
char macStr[18];
|
||||||
sprintf(macStr, "%02x:%02x:%02x:%02x:%02x:%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
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();
|
#ifdef ESP8266
|
||||||
String firstHash = computeSHA1(macString);
|
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
|
// Second hash: SHA1 of the first hash
|
||||||
String secondHash = computeSHA1(firstHash);
|
String secondHash = computeSHA1(firstHash);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user