Coder Social home page Coder Social logo

Comments (5)

mobizt avatar mobizt commented on May 24, 2024

Depending on your code, you should check free heap frequently somewhere on your code to debug for memory leak which can cause mcu to reset.

from firebase-esp8266.

kbssa avatar kbssa commented on May 24, 2024

Understood, but only the line of code below causes the crash.

Firebase.setString(updateFirebaseData, path + _nodeName + deviceFuction + String(_channel), _value);

If I comment it out the code runs pretty good.

Anyway I will look for memory leak.

from firebase-esp8266.

mobizt avatar mobizt commented on May 24, 2024

Every data must be converted to string internally for almost set functions and send as payload to server then setString() is not the causes because it directly send.

It is better to set debug level from Arduino IDE while choose Generic ESP8266 Module as board together with always print the ESP.getFreeHeap() and use ESP Exception Decoder addon in Arduino IDE to decode the error.

from firebase-esp8266.

ericpaepe avatar ericpaepe commented on May 24, 2024

Hello mobizt,

Running v 2.4.2 on 3 Esp8266's gave on all 5 to 10 "Wdt reset rst cause:4"/day. With v2.4.1 this seems OK.
I'm using : Firebase.pushJSON(firebaseData,"metingCV", message); in my code.
I will try the Generic ESP8266 Module , now I use NodeMCU 1.0(ESP-12E module).
Thanks for sharing your code.

Eric

from firebase-esp8266.

mobizt avatar mobizt commented on May 24, 2024

@ericpaepe
If you choose Generic ESP8266 Module, don't forget to choose Flash size.

I recommend to update to Core SDK to v2.5.2 because you will gain much more ram because BearSSL has better memory management which allows the library to reserve the known amount of ram for it.

Wdt reset issue caused by many possibilities depending on your free memory situation that effected to system operation, some long delay blocking code is minor issue that causes watchdog timer timed out.

Most of them is from memory leak and data is bigger than memory allocation.

To program ESP8266 and ESP32 you should strictly the memory usage and take care for all memory you used. Don't use String object too much in your code even it has it's own memory management (read this).

from firebase-esp8266.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.