ESP32 hangs on large string

Yordan
Posts: 10
Joined: Tue Aug 28, 2018 10:58 am

ESP32 hangs on large string

Postby Yordan » Tue Aug 28, 2018 11:03 am

Hello.
I need a ESP as a web server which provide pages which is build dynamically.
Anyway it turns out that it hangs when it need to create a large strings ( as a html content and tags ).
I have initially tied with WiFiServer, but it turns out that it hangs out by reason unknown, next I've tried with WebServer.h but it is having now problems with the large strings which i am building, and there seems like is no direct way to put portions in the client with it.

Please advice. Any help or redirecting to something more stable will be in great help.

Ritesh
Posts: 1128
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: ESP32 hangs on large string

Postby Ritesh » Tue Aug 28, 2018 6:37 pm

Yordan wrote:Hello.
I need a ESP as a web server which provide pages which is build dynamically.
Anyway it turns out that it hangs when it need to create a large strings ( as a html content and tags ).
I have initially tied with WiFiServer, but it turns out that it hangs out by reason unknown, next I've tried with WebServer.h but it is having now problems with the large strings which i am building, and there seems like is no direct way to put portions in the client with it.

Please advice. Any help or redirecting to something more stable will be in great help.
Would you please elaborate your issue in details?

Also which ESP32 IDF are you using?

Also is there any web server Component are you using?

ESP32 device is in AP mode or STA mode or both AP+STA?

It will be good if you share your code snippet for same.
Regards,
Ritesh Prajapati

Yordan
Posts: 10
Joined: Tue Aug 28, 2018 10:58 am

Re: ESP32 hangs on large string

Postby Yordan » Tue Aug 28, 2018 7:47 pm

ESP 32D - WROVER

I am using the original framework.

I am using WiFiServer component as a server.
anyway at some point the connection is either reset by the peer or just ESP does not respond, and my SSD1309 display freezing at this moment.

Ritesh
Posts: 1128
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: ESP32 hangs on large string

Postby Ritesh » Sat Sep 01, 2018 5:15 pm

Yordan wrote:ESP 32D - WROVER

I am using the original framework.

I am using WiFiServer component as a server.
anyway at some point the connection is either reset by the peer or just ESP does not respond, and my SSD1309 display freezing at this moment.
Hi,

Did you find solution for your problem or still same issue?

Just verify that ESP32 IDF and Web Server components are stable which you are using for your application purpose.
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: Bing [Bot] and 35 guests