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

Wifi WebCient disconnects immediately #425

Open
erberj opened this issue Jan 23, 2025 · 2 comments
Open

Wifi WebCient disconnects immediately #425

erberj opened this issue Jan 23, 2025 · 2 comments

Comments

@erberj
Copy link

erberj commented Jan 23, 2025

Hi,

I'm using this example with Arduino UNO R4 Wifi:

https://github.com/arduino/ArduinoCore-renesas/blob/main/libraries/WiFiS3/examples/WiFiWebClient/WiFiWebClient.ino

On Windows11, Arduino IDE 2.3.4.

The Client successfully connects to my nginx server, invokes one sucessful http post and then in the loop encounters an immediate client.connected()==false

How can I get a "sticky" connection?

Best regards
Jakob Erber

@JAndrassy
Copy link
Contributor

remove client.println("Connection: close");

@erberj
Copy link
Author

erberj commented Jan 24, 2025

I did so, thx. Still the same problem. Can it be a problem, that I call the http post inside the loop instead inside setup?

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