I have just started using an ESP8266 and used the example from here:
Having connected my NodeMCUESP8266 to my hub i can see the MAC address there.
The example code seems to print the MAC address back to front.
running from 5 thru 0 of the array.
If i change the code to 0 thru 5 it matches the mac address registered on my hub and the call for chip_id
matches the last three characters. (right most)
Note that reference page is for use with the Arduino WiFi library, written for the Arduino WiFi shield. Since you're using an ESP8266 you're definitely not using that library. However, usually the libraries for the ESP8266 are intended to be compatible with the Arduino WiFi library's API, and may even link to the WiFi library reference pages as their documentation. So this would more likely be considered a bug with the library you're using unless the macAddress() function of that library was intentionally written to work differently, in which case that behavior should be clearly documented.