• 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

    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)'?

About

Avatar for Gordon @Gordon started