What's my name ....

Posted on
  • Hi,

    is there a way to get my full Puck.js name ?

    Using process.env.BOARD tells me I am a PUCKJS, how to get the second part of my name, eg beca ?

    Sure, could use something static like this as workaround.

    E.setBootCode('var myName = "Puck.js beca";', true);
    
  • In 1v91 and later you can do this:

    "Puck.js "+NRF.getAddress().substr(-5).replace(":","")
    

    But I'm afraid there's no way to get the current address directly

  • Thanks - just tested - no need to get it directly.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

What's my name ....

Posted by Avatar for MaBe @MaBe

Actions