-
Notifications
You must be signed in to change notification settings - Fork 367
Change logic of reading HTTP response stream #180
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
Conversation
1d5edf8
to
9a59df2
Compare
I tried your new code and it worked! P.S. Suggest making code like this:
|
@reiyawea Thanks for testing. It doesn't matter where you place |
Tests made todayunder good network conditionTo test whether it is due to bad network condition that causes timeout problem, I set up a web server at home, caching the JSON from openweathermap. The URL is also modified pointing to that local server. It turns out that the timeout problem is gone, and the loading process is much faster. HTTP libraryI also rolled back to the previous version which uses HTTP library, but with Conclusion
|
Today I changed my CI to build based on the "fix/getting-remote-resources" branch and I can confirm that the "update weather data" problem is gone and the update is much faster then 1.6.6 I used before. I use arduino-cli latest and Arduino esp8266 v2.6.3 for building. Thank you very much. |
@tomte76 Thank you Daniel for testing. I will soon be rolling out this change across all affected classes and then push a new release. Stay tuned. |
b94feaa
to
91c20c1
Compare
Use plain TCP communication to fetch & process remote resources Fixes #178
91c20c1
to
150a1bc
Compare
Change logic of reading HTTP response stream (ThingPulse#180)
Use plain TCP communication to fetch & process remote resources
Fixes #178 and superseds #179.
I tested with ESP8266 Arduino Core 2.4.2 and 2.6.3. Assumption: if it works for those two it'll work for anything in between as well.
Don't worry about the failing CI build for now. Once the community confirms the fix to be ok I'll update all other affected pieces of code as well.