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

Simplified and improved Http Client and Http Server stream handling #1247

Merged
merged 10 commits into from
Oct 9, 2017

Conversation

slaff
Copy link
Contributor

@slaff slaff commented Sep 22, 2017

Added support for chunked transfer encoding.
Added support for multipart streams.
Sending and receiving data should require less memory.
Added sample that demos secure HTTP upload of a "big" local file to remote server.
Sending of "endless" data from the HttpClient and HttpServer should work as expected.

… encoding.

This way you can send video streams directly from your ESP-connected camera.
Added sample that demos secure HTTP upload of a local file to remote server.
Simplified the MemoryDataStream init check.
@slaff slaff added this to the 3.4.0 milestone Sep 22, 2017
- Zero-Copy for streams that have fixed size.
- Send data in async way. (Before that the request stream data was read in full and then sent )
- Added HttpChunkedStream for requests that need to send the data using "chunked" transfer-encoding (like endless video streams, etc. )
Now sending large files using HTTP is working as expected.
SSL sending or large data is still flawed and needs fixing.
Added improvements to TCP handling in HttpServer.
ArduinoStream now extends from the ReadWriteStream.
@slaff slaff force-pushed the fix/http-chunked branch from 49239cd to fa8369d Compare October 9, 2017 10:16
Changed the ArduCam application to use the multipart stream to stream "live" video from the camera.
Changed the FileStream to report the correct length.
@slaff slaff changed the title Fixed the support for sending "endless" data via HTTP using "chunked"… Simplified and improved Http Client and Http Server stream handling Oct 9, 2017
@slaff slaff force-pushed the fix/http-chunked branch from 77e3b3d to f96b4d0 Compare October 9, 2017 20:24
@slaff slaff merged commit a1ac636 into SmingHub:develop Oct 9, 2017
@slaff slaff mentioned this pull request Oct 11, 2017
10 tasks
@slaff slaff removed the 3 - Review label Oct 12, 2017
slaff pushed a commit to slaff/Sming that referenced this pull request Nov 6, 2017
…ith Arduino.

- Arduino compatibility improvements (SmingHub#1213).
- Library code for some Arduino libraries comes directly from their source repositories (Adafruit_ST7735, Adafruit_SSD1306).
- Added dynamic recalculation of image offsets to prevent rom overlapping (SmingHub#1208).
- Added Wi-Fi Protected Setup (WPS) support (SmingHub#1199).
- Ram savings in axTLS (SmingHub#1255).
- Simplified and improved Http Client and Http Server stream handling (SmingHub#1247).
- Fixed Memory Leak in Mqtt (SmingHub#1273).
- Updated Spiffs code to version 0.3.7 + fixes (#SmingHub#1246).

And much more. All merged PRs in this release can be seen from [here](https://github.com/SmingHub/Sming/milestone/12?closed=1)

- Changed the order of Wire.begin and Wire.pins parameters to match the Arduino order (SmingHub#1193).

For a complete list of changes run the following command:

```
git log 3.3.0..3.4.0
```

Thanks to everyone who helped us make this release happen.
@slaff slaff deleted the fix/http-chunked branch July 22, 2019 12:50
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.

2 participants