[Tizen][Bluetooth]齿轮设备未打开蓝牙

[Tizen][Bluetooth]齿轮设备未打开蓝牙,bluetooth,tizen-web-app,Bluetooth,Tizen Web App,我正在尝试tizen on gear设备的蓝牙web应用程序 当我试图检查代码时 tizen.systeminfo.getCapability(蓝牙功能键); 返回false。但是,该设备具有蓝牙功能。 它还可以连接到其他设备。使用适当的功能密钥并添加所需的权限 try { /* Checks if a device supports bluetooth API */ var bluetooth = tizen.systeminfo.getCapabilit

我正在尝试tizen on gear设备的蓝牙web应用程序

当我试图检查代码时 tizen.systeminfo.getCapability(蓝牙功能键); 返回false。但是,该设备具有蓝牙功能。
它还可以连接到其他设备。

使用适当的功能密钥并添加所需的权限

try
     {
       /* Checks if a device supports bluetooth API */
       var bluetooth = tizen.systeminfo.getCapability("http://tizen.org/feature/network.bluetooth");
       console.log(" Bluetooth = " + bluetooth);
       document.getElementById("isOnBL").innerHTML = "Bluetooth : "+bluetooth;
     }
     catch (error)
     {
        console.log("Error name: " + error.name + ", message: " + error.message);
     }
添加特权

   <tizen:privilege name="http://tizen.org/privilege/system"/>