ESP8266 reset (wdt reset)

Any help appreciated. Thanks.

I have used Gsender.h & Gsender.ccp to send email by ESP8266,It works well.
But when the Sketch uses more than 84% the ESP reset (wdt reset)

Would you please help me
.

It seems the html button </> click to display your code didn’t take; may want to try again.

The cause - improper memory allocation. Are you using Strings? At 84%, that is the most likely culprit;

https://arduino-esp8266.readthedocs.io/en/latest/faq/a02-my-esp-crashes.html

Thank you very much for your reply

I have for example client.println(“

My Title

”) but I have no </> alone.

Yes I have a great deal of Strings Variables and Constants. but I don’t know which one is culprit.

any way thanks for your time.

Dear JMeller

You mean if I change all Strings to const char* the problem will be solved?

MajidAtaeiChatroodi:
Dear JMeller

You mean if I change all Strings to const char* the problem will be solved?

That’s something that nobody can guarantee. It’s up to you to modify and test.

By the way, </> refers to code tags ([code] your code here [/code]) and those are used when posting code on the forum.