I have only found this command and have not found mention of it in this forum but if i am not mistaken this shows available ram?
And i ordered some chips and another esp to try them on.
gcinfo()
This function returns 2 values.
The first : the value of used memory.
The second: the value, of the reserved memory for the garbage collector.
garbage collector is a independent working programm, that clears memory that will not be used anymore. See also collectgarbage
Both values are in kB.
!!!!!!!!! Since lua 5.1 collectgarbage("count") has been replaced this function !!!!!!!!!!
Example:
print( gcinfo()) --> 17 29
bigString = string.rep('a', 100000) -- a lot of memory will be used
print( gcinfo()) --> 322 197