You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi - I'm afraid it doesn't support it yet... It's on my list though :)

    So the issue you have is that 'this' generally gets reset when you call setTimeout - however you can still access any other local variables. The easiest way around it (the one that I tend to use in examples/modules) is:

    var sensor = this;
    setTimeout(function (e) { sensor.getSensorReading(); }, w);
    
About

Avatar for Gordon @Gordon started