1

i am making post requests with esp8266 on nodeMCU. i have a messy code so i dont want to annoy you with showing it here. the problem is i get soft wdt reset time to time while making request. for example i change piece of code(removing or adding some serial.println lines) and i see i get soft wdt reset right there in http.post.

i tried my best to avoid Strings. I only used a few times, without in the loop. I am only using WiFiClientSecureBearSSL with FirebaseESP8266.

do you have any idea what cause this problem?

asked Apr 11, 2020 at 15:37
8
  • How are you powering the board? Commented Apr 11, 2020 at 15:37
  • with usb. i am not using without cable yet i am still dealing with these resets. Commented Apr 11, 2020 at 15:40
  • Connected direct you your computer? Not through an unpowered hub? Commented Apr 11, 2020 at 15:46
  • It is connected directly to the usb port. Why is there something wrong with it? Commented Apr 11, 2020 at 15:48
  • No. Quite the opposite. I have seen WDT timeouts when the board has been under-powered, but that's not the case here. Commented Apr 11, 2020 at 15:50

1 Answer 1

3

Show examples of the error - and install ESPexeption decoder to analyse the stack trace this will at least show why the wdt was caused
So the only thing as of now I can recommend
There is an issue with bearssl:

It's a WDT error caused by an extended SSL negotiation.

  • Change the core frequency to 160MHz (if not already done) and try again.
  • Use instead of LWIP1.4 (memory hog) low-mem LWIP2.0 with your program.
  • Since SSL negotiation can take 5 seconds even at 160MHz for some websites be sure by adding a yield() not to trigger a wdt reset

So without code/ trace and error messages its hard to guess

answered Apr 11, 2020 at 17:17

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.