As far as I can tell, don't you just want to do:
var a = this.getSensorAddress();
var a = this.getSensorAddress;
That will execute the function on this, returning the address itself.
© Espruino, powered by microcosm.
Report a problem