I'm developing an application that controls a device with IRLED.
In the Tizen Wearable SDK, I have a button that, when clicked, the should run the following script:
<script>
document.getElementById('tester').onclick = function()
{
var data = "SOME InfraRED CODES !!!!";
webapis.irled.send(
data,
function() {
console.log("data send ok");
},
function(e) {
console.log("Error: " + e.message);
}
);
}
</script>
The application runs without any errors on mu Gear 2 (SM-R380), but when I tap the button, the following error appears in the console:
js/main.js (17) :SecurityError: The application does not have the privilege to call this method.
I've also added the IRLED privilege in the config.xml
file.