Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If I put a delay in the loop, it stopped connecting to the server #877

Open
Betsq opened this issue Mar 28, 2024 · 1 comment
Open

If I put a delay in the loop, it stopped connecting to the server #877

Betsq opened this issue Mar 28, 2024 · 1 comment

Comments

@Betsq
Copy link

Betsq commented Mar 28, 2024

I have this piece of code:
void loop() { webSocket.loop(); delay(2000); }
when I set the delay, the websocket cannot connect in any way and constantly log 'Disconnected'. But if I remove the delay, everything connects fine

I'm using ESP32

@Betsq Betsq changed the title If you put a delay in the loop, it stopped connecting to the server If I put a delay in the loop, it stopped connecting to the server Mar 28, 2024
@sostenesapollo
Copy link

any answer ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants