ricaun/ArduinoUniqueID

Seem a little mistake with ESP32 C3

Skywalkerf34 opened this issue · 2 comments

Hi,

This lib works like a Charm with ESP32 C3 except that all my device's low MAC are minus 1
original MAC is 84:F7:03:3B:49:ED
given Mac by the library is 84:F7:03:3B:49:EC

This is always the same with all my chip

The library is using the uint64_t chipid = ESP.getEfuseMac();

#elif defined(ARDUINO_ARCH_ESP32)
uint64_t chipid = ESP.getEfuseMac();
id[0] = 0;
id[1] = 0;
id[2] = chipid;
id[3] = chipid >> 8;
id[4] = chipid >> 16;
id[5] = chipid >> 24;
id[6] = chipid >> 32;
id[7] = chipid >> 40;

Hi,

You are right !
This is the tools I am using on my Android Phone that give this wrong MAC (+1)