marcoschwartz / aREST

A RESTful environment for Arduino
http://aREST.io/
Other
1.2k stars 279 forks source link

Serial.print("Memory loss before reset:"); #116

Closed matthewbaggett closed 8 years ago

matthewbaggett commented 8 years ago

There are a few Serial.print() lines in the source affecting the ESP8266.

Memory loss before reset:184 Memory loss after reset:0 Memory free:40768

I also need to do a Serial.print("") immediately after calling rest.handle(client), otherwise I get a crash.

marcoschwartz commented 8 years ago

Are those messages also appearing when you have the DEBUG_MODE set to 0?

peeter81 commented 8 years ago

I have a same problem, Serial Monitor shows: Arduino IDE 1.6.8 NodeMCU v1.0 (ESP12-E)

Memory loss before reset:184 Memory loss after reset:0 Memory free:37784

Memory loss before reset:0 Memory loss after reset:0 Memory free:37784

Memory loss before reset:0 Memory loss after reset:0 Memory free:37784

Memory loss before reset:0 Memory loss after reset:0 Memory free:37784

Memory loss before reset:0 Memory loss after reset:0 Memory free:37784

and so on...

Is this problem for ESP12-E (NodeMCU 1.0)?

Is NodeMCU going to crash finally after some time of working? Please send any comment about this issue via e-mail (is it error or just some debug information)?

marcoschwartz commented 8 years ago

This is now fixed in the latest version of the library, it will only appear if you enable the debug mode :)

peeter81 commented 8 years ago

To check debug mode is disabled (not enabled) should i open my aREST.h library on harddrive folder (same as here https://github.com/marcoschwartz/aREST/blob/master/aREST.h) and check if debug mode is set to 0 ?

like here at lines 103-106: // Debug mode

ifndef DEBUG_MODE

define DEBUG_MODE 0

endif

?

marcoschwartz commented 8 years ago

You don't actually need to go into the library file, just put:

define DEBUG_MODE 0

At the start of your sketch if you want to be sure :)