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

Modified Cstr routine #2

Merged
merged 10 commits into from
Oct 4, 2022
Merged

Modified Cstr routine #2

merged 10 commits into from
Oct 4, 2022

Conversation

salasidis
Copy link
Owner

No longer destructive to original string

Uses a minute extra heap space, but less than one ethernet packet worth, so immaterial for the most part

Not fully tested with the previous examples, but seems to work in my application (will have to run tests tomorrow)

(mods as per last post in the Issues)

If small message - use original method to send

If small header, large body, send header and some body text, and then send body text piecemeal via C string method - non destructive)

If large header - send a piece

(in the sending routine)
Send until all the partial header is sent.

Once sent, then start sending the content

All memmoves are eliminated, all modifications to the Cstr are eliminated, so it should be non destructive

(but as mentioned, not fully tested yet)

### Releases v1.4.0

1. Support using `CString` in optional `SDRAM` to save heap to send `very large data`. Check [request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap #8](#8)
2. Add multiple examples to demo the new feature
### Releases v1.4.0

1. Support using `CString` in optional `SDRAM` to save heap to send `very large data`. Check [request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap #8](#8)
2. Add multiple examples to demo the new feature
### Releases v1.4.0

1. Support using `CString` in optional `SDRAM` to save heap to send `very large data`. Check [request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap #8](#8)
2. Add multiple examples to demo the new feature
### Releases v1.4.0

1. Support using `CString` in optional `SDRAM` to save heap to send `very large data`. Check [request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap #8](#8)
2. Add multiple examples to demo the new feature
### Releases v1.4.0

1. Support using `CString` in optional `SDRAM` to save heap to send `very large data`. Check [request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap #8](#8)
2. Add multiple examples to demo the new feature
Update `Async_AdvancedWebServer_CString.png`
### Releases v1.4.0

1. Support using `CString` in optional `SDRAM` to save heap to send `very large data`. Check [request->send(200, textPlainStr, jsonChartDataCharStr); - Without using String Class - to save heap #8](#8)
2. Add multiple examples to demo the new feature
@salasidis salasidis merged commit 8fe690d into salasidis:main Oct 4, 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.

2 participants