0

How can I get the SoftAp security key from Samsung Smart TV in JavaScript?

I tried the code below:

let password=null;
try {
  password = webapis.network.getSoftAPSecurityKey();
} catch (err) {
  
  console.log("error status: " + err.status);
  console.log("error name: " + err.name);
  console.log("error message: " + err.message);
}

but I get the below error:

error status: undefined
error name: UnknownError 
error message: Failed to get Soft AP security Key

Notice that I specified in the config xml:

<tizen:privilege name="http://developer.samsung.com/privilege/network.softAP"/>
<tizen:privilege name="http://developer.samsung.com/privilege/network.public"/>

and in index.html I included:

<script type="text/javascript" src="$WEBAPIS/webapis/webapis.js"></script>
Atlas-50
  • 1
  • 2

1 Answers1

1

This feature is not supported on normal smart TV. If you want to use this feature, please get in touch with a technical support member for you