-->
Page 1 of 1

Free memory

PostPosted: Sat Nov 12, 2016 12:57 pm
by Luc Volders
Mike,

Is there any way to test how much memory is still free to use.

I am using NodeMCU with 4 Mb which is no problem but I still have some ESP-01's which are great for simple tasks like temperature measuring and button testing etc. However It is not clear to me how much memory is left in the filesystem and when running a program.

I find myself working with ESP-Basic instead off Ardiuino (C++) and Lua more and more.

ESP basic is simply awesome !
Thanks for your tremendous efforts.

Luc

Re: Free memory

PostPosted: Sat Nov 12, 2016 1:04 pm
by Electroguard
ramfree()
Will return the amount of ram free in bytes.

flashfree()
Will return the amount of flash free in bytes. This is only applicable to flash designated for the file system.

Re: Free memory

PostPosted: Sat Nov 12, 2016 1:10 pm
by Luc Volders
Electroguard,

Stupid me !!! I was typing this and just a few moments later I found the answer in the manual !!!
I was again to fast with asking the question instead of reading the manual thoroughly.

I was going to delete this post and then saw that you already answered it !!
My bad.

Thanks for the answer anyway !!!

Luc