Hi, my question kind of relates to my question from: generic pause/wait? I'm trying to wrap my head around how prototypeing works. does the Espruino support bind? For example:
setTimeout(function (e) { this.getSensorReading(); }.bind(this), w); //Attempting to execute getSensorReading()
I receive error:
Uncaught Error: Function "bind" not found!
at line 8 col 58
...this.getSensorReading(); }.bind(this), w); //Attempting to e...
^
in function "getSensorResult" called from line 1 col 20
ph.getSensorResult();
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.
Hi, my question kind of relates to my question from: generic pause/wait? I'm trying to wrap my head around how prototypeing works. does the Espruino support bind? For example:
I receive error: