Replies: 5 comments 5 replies
-
Ok, applied that patch from https://github.com/espressif/arduino-esp32/pull/8541/files and it's working now. Found the file to manually patch at ~/.packages/[email protected]/libraries/WiFi/src/WiFiClient.cpp which was found when looking at a pio build as
Then I realized my HTTP GET was not going to work due to the file size. :-) The getString() body was empty. All working now, sorry to bug here. |
Beta Was this translation helpful? Give feedback.
-
I need to re-open this. In general the discussion might be just a pure wifi related discussion, but figured I would start here since I started this discussion. So I'm having some further wifi issues with downloading album art, but only after some number of attempts. I added some interesting prints to the loop that does the stream->readBytes(). Here is the code snippet:
This gives me this output, where the first several are fast , and then you and see it starts failing. The album count tells where the retries are happening.
|
Beta Was this translation helpful? Give feedback.
-
So I can't tell if it's a server issue or client issue, but if I restart the esp32 it works again for the first several just fine. I think that proves there is a client issue, but not sure where to look next. |
Beta Was this translation helpful? Give feedback.
-
Well, there ya go. Its counterintuitive (to me anyway), but if I lower the timeout from 1900 to 500 then it works every time so far. I guess it's keeping the connection alive.
|
Beta Was this translation helpful? Give feedback.
-
I do call http.end() each time. Is there any part of that that needs more async time to complete? |
Beta Was this translation helpful? Give feedback.
-
I am wondering if anyone has tried using WifiClient with this repo? I'm trying a simple http download of a text file but hit the issue described by this:
espressif/arduino-esp32#6129
And there is a patch mentioned here:
https://github.com/espressif/arduino-esp32/pull/8541/files
But this is somewhat old so I was wondering if anyone else needed to do this or maybe something else to use WifiClient?
The error I get is
[WiFiClient.cpp:517] flush(): fail on fd 48, errno: 11, "No more processes"
and I have confirmed the url works from another computer on the same LAN with just ChromeI see another wifi discussion here but it looks like its asking about noise/interference.
Beta Was this translation helpful? Give feedback.
All reactions