getMemStat

Device

Returns the memory information of the device.

$m.getMemStat(function(response) {

        var result = response.result;

juci.controls.get("app-memory").value(result[$m.MEM_APP]);

juci.controls.get("tot-int-memory").value(result[$m.MEM_INT_TOT]);

juci.controls.get("avl-int-memory").value(result[$m.MEM_INT_AVL]);

juci.controls.get("tot-ext-memory").value(result[$m.MEM_EXT_TOT];

juci.controls.get("avl-ext-memory").value(result[$m.MEM_EXT_AVL]);

});

Syntax

        $m.getMemStat(fp_callback)

Parameters

fp_callback

function (optional)

Function to execute when the device memory  is read. The function receives the response object with the following properties,

  1. result - {Object}. Devide meory contains the following properties
  1. $m.MEM_APP - {String}. Application memory.
  2. $m.MEM_EXT_AVL - {String}. Free external memory.
  3. $m.MEM_INT_AVL - {String}. Free internal memory.
  4. $m.MEM_EXT_TOT - {String}. Total external memory.
  5. $m.MEM_INT_TOT - {String}. Total internal memory.
  1. error - {Object}. Available when the code is 0. The error object contains,
  1. message - {String}. A short description of the error.
  2. description - {String}. A detailed description of the error.