Class DeviceInfo#setSoftApInfo
DeviceInfo
- Defined in: deviceInfo.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
DeviceInfo#setSoftApInfo(successCallback, errorCallback, options)
Sets Soft AP information.
|
Class Detail
DeviceInfo#setSoftApInfo(successCallback, errorCallback, options)
Sets Soft AP information.
// Javascript code
function setSoftApInfo () {
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();
var options = {
enabled : true,
ssid : "LG SIGNAGE",
securityKey : "404571"
};
deviceInfo.setSoftApInfo(successCb, failureCb, options);
}
- Parameters:
- {Function} successCallback
- success callback function.
- {Function} errorCallback
- failure callback function.
- {Object} options
Property Type Description Required enabled Boolean Soft AP is enabled true: enabled, false: disabled required ssid String SSID of Soft AP (Maximum length is 32). Only valid when 'enabled' is true. required securityKey String Security key(6 characters). It is automatically prefixed with "LG". Only valid when 'enabled' is true. required
- Since:
- 1.3
- Platform Version:
- webOS Signage 2.0
- See:
- DeviceInfo.getSoftApInfo()
,