Class Signage#getSystemMonitoringInfo

Signage

Class Summary
Constructor Attributes Constructor Name and Description
 
Signage#getSystemMonitoringInfo(successCallback, errorCallback)

Gets system monitoring setting.

Class Detail

Signage#getSystemMonitoringInfo(successCallback, errorCallback)

Gets system monitoring setting. If one of the attributes is set to true, corresponding sensor events will be sent. Use onSignageMonitoringEvent to register handler for those events.

function getSystemMonitoringInfo() {
   var successCb = function (cbObject){
     var fan =  cbObject.fan;
     var signal =  cbObject.signal;
     var lamp =  cbObject.lamp;
     var screen =  cbObject.screen;
     var temperature =  cbObject.temperature;	 

     console.log("Monitor Fan: " + fan);
     console.log("Monitor signal: " + signal);
     console.log("Monitor lamp: " + lamp);
     console.log("Monitor screen: " + screen);
     console.log("Monitor temperature: " + temperature);	 
   };

   var failureCb = function(cbObject){
     var errorCode = cbObject.errorCode;
     var errorText = cbObject.errorText;
     console.log( " Error Code [" + errorCode + "]: " + errorText); 
   };

   var signage = new Signage();
   signage.getSystemMonitoringInfo(successCb, failureCb);
}
Parameters:
{Function} successCallback
success callback function.
{Function} errorCallback
failure callback function.
Since:
1.0
Returns:

After the method is successfully executed, successCallback is called with monitorConfiguration object with following data

PropertyTypeDescription
fanBooleanReceive events from the sensor that monitors the fan
signalBooleanReceive events from the signal receiver
lampBooleanReceive events from the sensor that monitors the lamp
screenBooleanReceive events from the sensor that monitors the screen
temperatureBooleanReceive events from the sensor that monitors the temperature

If an error occurs, errorCallback is called with errorCode and errorText.