Class DeviceInfo#getSoftApInfo

DeviceInfo

Class Summary
Constructor Attributes Constructor Name and Description
 
DeviceInfo#getSoftApInfo(successCallback, errorCallback)
Gets Soft AP information.

Class Detail

DeviceInfo#getSoftApInfo(successCallback, errorCallback)
Gets Soft AP information.
// Javascript code
function getSoftApInfo () {
  function successCb(cbObject) {
     console.log("cbObject : " + JSON.stringify(cbObject));
     console.log("enabled : " + cbObject.enabled);
     console.log("ssid : " + cbObject.ssid);
     console.log("securityKey : " + cbObject.securityKey);
  }

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

  var deviceInfo = new DeviceInfo();
  deviceInfo.getSoftApInfo(successCb, failureCb);
}
Parameters:
{Function} successCallback
success callback function.
{Function} errorCallback
failure callback function.
{Object}
PropertyTypeDescription
enabledBooleanSoft AP is enabled true: enabled, false: disabled
ssidStringSSID of Soft AP (Maximum length is 32). Only valid when 'enabled' is true.
securityKeyStringSecurity key(6 characters). It is automatically prefixed with "LG". Only valid when 'enabled' is true.
Since:
1.3
Platform Version:
webOS Signage 2.0
Returns:
See:
DeviceInfo.setSoftApInfo()
,