Returns the amount of currently unused memory in the imp
Device + Agent
Integer — the amount of free RAM in bytes
This method reports the amount of currently unused memory in the imp. The available memory within an imp may become fragmented. Hence allocating objects smaller than the free memory report can still fail, causing an out-of-memory error.
Filling an array with 1KB blobs will very quickly fill an imp’s memory, as the following code demonstrates.