Table of Contents

freemem

WMPRO, WMMINI FW >= 1.0 WMMEGA FW >= 2.0

Return free memory space

Description

int freemem ( )

Parameters

None

Return Values

Integer number of bytes available in RAM

Example

<pre><?
  $free=freemem();
  print($free." bytes free memory\r\n");
  if ($free<10000) print("Memory is getting low...");
?></pre>

See Also

disk_free_space() - Return free space on microSD card

freestack() - Return free stack space

mem_dump() - Write the current memory map to /dump.txt

mem_usage() - Write memory usage to standard output

nvram_free() - Return the number of bytes available in NVRAM

Memory Limit Challenges to Programming the Wattmon