How to get ESP8266 Wifi MAC ? #5241
Replies: 1 comment
-
Posted at 2015-11-24 by tve I don't think we have a function for that :-) Posted at 2015-11-24 by @gfwilliams Do you mean when running Espruino on the ESP8266 itself, or when running on an Espruino board connected to the ESP8266? If it's on the Espruino board I'm not sure there's a function, but you can add one with a simple bit of code. Something like:
Posted at 2015-11-24 by @MaBecker running Espruino on ESP8266, like esptool.py does: esptool.py --port /dev/cu.usbserial --baud 115200 read_mac Connecting... inside esptool.py
Posted at 2015-11-24 by @gfwilliams Well, you could try Posted at 2015-11-24 by @MaBecker thats it - thanks ! Posted at 2015-11-24 by Kolban @MaBecker From your post, a new issue was created (Issue #722) .. fortunately, it wasn't difficult at all to add and can now be found in the latest builds. See: Posted at 2015-11-24 by @MaBecker @Kolban Thanks ! so now we have the last part of the MAC: 05:99:c9 wifi.getIP(); Posted at 2015-11-25 by @gfwilliams @Kolban there's some code in network.c that will properly format the Mac address into a string. Check out how WIZnet does it
Posted at 2015-11-25 by Kolban Perfect ... added to Issue #722 as a task to be done before completion of that issue. Posted at 2015-11-26 by tve Should be in an upcoming build thanks to Kolban's fix :-). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-11-24 by @MaBecker
can someone please explain how to get the wifi mac
Beta Was this translation helpful? Give feedback.
All reactions