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

I have error for read mac adresse with NodeMcu 0.9 #1

Open
Marco401 opened this issue Sep 12, 2016 · 0 comments
Open

I have error for read mac adresse with NodeMcu 0.9 #1

Marco401 opened this issue Sep 12, 2016 · 0 comments

Comments

@Marco401
Copy link

Hello
I have modified your code esp.cpp ($Id: esp_tool.cpp 78 2015-09-08 17:54:33Z Don $) for read Mac adress:

uint8_t id = (uint8_t)(mac1 >> 16);
//marc ajout
if (mac3 != 0)
{
mac[0] =(mac3 >> 16) & 0xff;
mac[1] =(mac3 >> 8) & 0xff;
mac[2] =mac3 & 0xff;
mac[6] =((mac3 >> 16) & 0xff)|2;
mac[7] =((mac3 >> 8) & 0xff);
mac[8] =mac3 & 0xff;
}
else if (id == 0) //marc ajout else
{
memcpy(mac + 0, "\x18\xfe\x34", 3);
if (apAlso)
memcpy(mac + 6, "\x1a\xfe\x34", 3);
}

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

1 participant