implementing timeout for WebREPL #16873
Unanswered
db4rne
asked this question in
Using MicroPython
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm currently writing a program for esp32 that should always run. However, for debugging purposes I have a command that interrupts normal execution of my program and starts a webrepl with webrepl.start(). I want to have a timeout on this, so that after lets say an hour the esp32 resets and continues to run the normal program. Currently, I'm doing this with the watchdog like this:
I didn't wait an hour yet, but it seems to work. My question is: is there a better way of doing this? I would prefer e.g. a timeout after 10 minutes of no typing or something similar?
Beta Was this translation helpful? Give feedback.
All reactions