Thanks! You can get the type of device with process.env.BOARD and as @Wilberforce mentions you can get a unique serial number with getSerial.
You can also get the Puck's MAC address with NRF.getAddress() - while you can't get the actual name, you can fake it by adding "Puck.js " to the last 4 digits of that MAC address.
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.
Thanks! You can get the type of device with
process.env.BOARD
and as @Wilberforce mentions you can get a unique serial number withgetSerial
.You can also get the Puck's MAC address with
NRF.getAddress()
- while you can't get the actual name, you can fake it by adding"Puck.js "
to the last 4 digits of that MAC address.