Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting MAC adress of lilygo watch T-watch-2020 V3 #255

Open
Joeppie013 opened this issue Nov 25, 2024 · 1 comment
Open

Getting MAC adress of lilygo watch T-watch-2020 V3 #255

Joeppie013 opened this issue Nov 25, 2024 · 1 comment

Comments

@Joeppie013
Copy link

I cant seem to get the mac adress of the lilygo watch. tried serveral codes but it just keeps printing either 00:00:00:00:00 or it returns nothing

@lewisxhe
Copy link
Contributor

Which MAC address do you need? There are multiple MAC addresses. If you want the MAC address of the fuse, just use this example


uint32_t chipId = 0;

void setup() {
Serial.begin(115200);
}

void loop() {
for (int i = 0; i < 17; i = i + 8) {
chipId |= ((ESP.getEfuseMac() >> (40 - i)) & 0xff) << i;
}

Serial.printf("ESP32 Chip model = %s Rev %d\n", ESP.getChipModel(), ESP.getChipRevision());
Serial.printf("This chip has %d cores\n", ESP.getChipCores());
Serial.print("Chip ID: ");
Serial.println(chipId);

delay(3000);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants