-
Notifications
You must be signed in to change notification settings - Fork 7.6k
esp32 http request works only the first time #3387
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
Comments
using WiFimulti class instead of WiFi for connection solved the issue |
I faced same situation. After lots of R&Ds I found, Its problem of connection reuse. In httpclient connection reuse is true by default. |
thanks for your update,@vt-d-developer |
Does not work for me. |
Hardware:
Board: ESP32 Dev Module
Core Installation version: the problem is present with both 1.0.1 and 1.0.2
IDE name: Arduino IDE
Flash Frequency: 80Mhz
Upload Speed: 921600
Computer OS: Windows 8.1
Description:
http requests work fine only the first time
if i want to make any further requests the httpcode respond is always -1
and i have to reconnect to my wifi for every request
using
and then connect again as usual
only then the httpclient works fine and i get the httpcode 200 and the payload
but
it takes alot of time
need help....
Sketch:
is just simple http get request
The text was updated successfully, but these errors were encountered: