Returns the imp’s WiFi MAC address
Device
DEPRECATED METHOD — DO NOT USE IN NEW CODE
String — the imp’s MAC address as 12 hexadecimal characters
This method is now deprecated. However, removing it altogether would cause users’ existing code to stop working, so we currently have no plans to do so. The recommended means of gaining the information this method returns is to call imp.net.info().
Unlike a device ID, a MAC address belongs to the imp, not to the device in which the imp is fitted. For imp001s and imp002s, the MAC address is also printed on the imp itself.
The imp005 supports both WiFi and Ethernet connectivity. However, this method will only return the imp005’s WiFi MAC address, not that of its Ethernet interface. You will need to call imp.net.info() (introduced in impOS™ release 33) to discover an imp005’s Ethernet MAC address.
Note This method has been removed from versions of impOS running on the impC001.