# Class Signage#getPowerSaveMode

Signage

- Defined in: signage.js

Class Summary
Constructor Attributes | Constructor Name and Description
--- | ---
| Signage#getPowerSaveMode(successCallback, errorCallback) Gets power saving mode.

## Class Detail

Signage#getPowerSaveMode(successCallback, errorCallback)

Gets power saving mode.

    function getPowerSaveMode() {
       var successCb = function (cbObject){
         var ses = cbObject.ses;
         var dpmMode = cbObject.dpmMode;
         var automaticStandby = cbObject.automaticStandby;
         var do15MinOff = cbObject.do15MinOff;

         console.log("Smart Energy Saving: " + ses);
         console.log("Display Power Management: " + dpmMode);
         console.log("Automatic Standby Mode: " + automaticStandby);
         console.log("15 Minutes Off: " + do15MinOff);
       };

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

    var signage = new Signage();
    signage.getPowerSaveMode(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 the following data.

  Property | Type | Description
  --- | --- | ---
  ses | Boolean | Smart Energy Saving mode. This will deduce monitor power usage by manipulating the power usage on the screen backlight etc.
  dpmMode | Signage.DpmMode | Display Power Management mode. Sets the monitor power off time while there is no signal/no user inputs/no application on the monitor
  automaticStandby | Signage.AutomaticStandbyMode | Automatic standby mode. Sets the monitor power off time while there is no user inputs on the monitor
  do15MinOff | Boolean | 15 Minutes off mode. Sets the monitor power off time while there is no signal/no user inputs on the monitor

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