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

Software WDT with ESP8266 when sending large strings #6

Open
francisawt opened this issue Feb 20, 2024 · 0 comments
Open

Software WDT with ESP8266 when sending large strings #6

francisawt opened this issue Feb 20, 2024 · 0 comments

Comments

@francisawt
Copy link

francisawt commented Feb 20, 2024

Hello!

Many thanks for this awesome library!

I have to send a long string (>10 000 char) through my ENC28J60 with ESP8266. It is impossible due to calculation duration, the software WDT makes a reset.

I have already put a yield() inside :

size_t BufferedPrint::write(const uint8_t *buf, size_t length)
{ 
yield(); 
for (size_t...

Helped a lot but did not solved. Still crashing while writting.

How can it be improved?

Thanks in advance!

PS: my code is

const size_t BUFFER_SIZE = 128;
char html_buff[BUFFER_SIZE];
BufferedPrint message(client, html_buff, sizeof(html_buff));
message.print(F(HTML_STRING));

with HTML_STRING the 10Ko string.

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

No branches or pull requests

1 participant