Just to add to this...
another way to call the function repeatedly
setInterval should be fine - right now it's just being slowed down by the code execution
setInterval
is there a way to check the data without using print?
Could you just write the data to a global variable? Then when you want to check it you can write 'print(mydata)'?
@Gordon started
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.
Just to add to this...
setInterval
should be fine - right now it's just being slowed down by the code executionCould you just write the data to a global variable? Then when you want to check it you can write 'print(mydata)'?