I want to be able to access the repl using webrepl.
I'm only able to access webrepl when no code is being executed. webrepl won't let me log in if code is running.
Due to the nature of my application I can't stop the infinite loop remotely, as the device is in a waterproof case.
I can see in this thread that someone uses a callback timer : viewtopic.php?f=2&t=7416&p=42743&hilit=webrepl#p42743
But I'm unsure how to implement it for my project.
Essentially my code is this :
Code: Select all
While True:
sampleInstruments()
sendData()
Any help would be greatly appreciated