You are reading a single comment by @d0773d and its replies. Click here to read the full conversation.
  • 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();
    
About

Avatar for d0773d @d0773d started