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

Close #174 by sending entire webserver response to ESP32 in one go if possible #175

Merged
merged 2 commits into from
Sep 11, 2022

Conversation

rivques
Copy link
Contributor

@rivques rivques commented Sep 10, 2022

This fixes #174, and gets my connection speed on a Metro M4 Airlift Lite from about 800 bps to something like 178 kpbs when serving a webpage, though your mileage may vary. For some reason finish_response would be called an empty array after the initial call with the intended response string, so I've left the original handling logic behind some type checks if that array ends up being non-empty. It's very possible I've misunderstood how WSGI is working here and more needs to be done with this, but it seems to handle what I've thrown at it.

by sending entire webserver response to esp32 in one go if possible
Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine with me for now, for the reasons noted in #174. Thanks!

@dhalbert
Copy link
Contributor

The checks failed, only due to a formatting issue. Could you run your changes through black? Or use pre-commit to do it automatically.

@dhalbert dhalbert merged commit ee6bfcf into adafruit:main Sep 11, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 16, 2022
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

Successfully merging this pull request may close these issues.

800 bps when serving webpage with WSGIServer
2 participants