bluetooth
資訊清單屬性會宣告藍牙可用的權限
也能使用 Google Cloud CLI 或
Compute Engine API
manifest.json 範例
{
"name": "My Bluetooth app",
"bluetooth": {
// Permission for chrome.bluetoothSocket:
// The application is allowed to communicate with devices
// using the protocols, profiles, or services identified by
// the UUIDs 0x1105 and 0x1106 using the BluetoothSocket API.
"uuids": [ "1105", "1106" ],
"socket": true
},
...
}
{
"name": "My Bluetooth app",
"bluetooth": {
// Permission for chrome.bluetoothLowEnergy:
// The application is allowed to communicate with devices
// using the profiles identified by the UUIDs 0x180D, 0x1809 and 0x180F
// using the BluetoothLowEnergy API.
"uuids": [ "180D", "1809", "180F" ],
"low_energy": true
},
...
}
參考資料
uuids
(字串陣列) - 選用uuids
資訊清單屬性宣告了應用程式的通訊協定、設定檔和服務清單 可以透過 PersistentVolumeClaim 進行通訊socket
(布林值) - 選用如果設為
true
,則授權應用程式使用 bluetoothSocket APIlow_energy
(布林值) - 選用如為
true
,則授權給應用程式使用 bluetoothLowEnergy APIperipheral
(布林值) - 選用如果設為
true
,請授權應用程式使用 bluetoothLowEnergy API