Altho you didn't say which device you have, but I think it returns the MAC of the device in all cases.
Question is: what do you want to accomplish. You can use for example storage to save configuration like a shorter device name in flash. And read that in the onInit().
I have a STM32F4DISCOVERY board. Yes, I want to have a unique identity whick like MAC ADDRESS in the board, but I don't want to define it in code. I see process.env.SERIAL is a good position to store.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Altho you didn't say which device you have, but I think it returns the MAC of the device in all cases.
Question is: what do you want to accomplish. You can use for example storage to save configuration like a shorter device name in flash. And read that in the
onInit()
.