Network connection loss during active webrepl pauses ESP32 script #10444
Unanswered
astirfreak
asked this question in
ESP32
Replies: 1 comment 2 replies
-
Meanwhile I solved the problem by putting all prints in an independent thread. |
Beta Was this translation helpful? Give feedback.
2 replies
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 have a script which is working in a 0.5s task. Within this task I use a lot of print instructions to write the current status of the script to the console (serial and/or webrepl). This works fine. The task itself lasts about 100ms and the print routine, called within the task another about 150ms. So the task has a total time of about 250ms. The remaining time of the 500ms task, the script is in a while loop containing utime.sleep_ms(11) instructions.
I observed, that the duration of the print routine is dependent on the quality of the network connection, if webrepl is connected.
When I have an active webrepl session on my PC and I pull the network cable during this active session and put it in again after several seconds I observe, that the complete script has stopped for the time, the network connection was lost. After reconnect, the script continues without error.
Is there a way to avoid this behavior? I guess, that the delay happens within a print instruction.
Michael
Beta Was this translation helpful? Give feedback.
All reactions