BluetoothRemoteGATTDescriptor
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Giao diện BluetoothRemoteGATTDescriptor của Web Bluetooth API cung cấp một bộ mô tả GATT, dùng để cung cấp thêm thông tin về giá trị của một đặc tính.
Thuộc tính thể hiện
BluetoothRemoteGATTDescriptor.characteristicRead only Experimental-
Trả về
BluetoothRemoteGATTCharacteristicmà bộ mô tả này thuộc về. BluetoothRemoteGATTDescriptor.uuidRead only Experimental-
Trả về UUID của bộ mô tả đặc tính, ví dụ
"00002902-0000-1000-8000-00805f9b34fb"cho bộ mô tả Client Characteristic Configuration. BluetoothRemoteGATTDescriptor.valueRead only Experimental-
Trả về giá trị bộ mô tả hiện đang được lưu trong bộ nhớ đệm. Giá trị này được cập nhật khi giá trị của bộ mô tả được đọc.
Phương thức thể hiện
BluetoothRemoteGATTDescriptor.readValue()Experimental-
Trả về một
Promisehoàn tất với mộtArrayBufferchứa một bản sao của thuộc tínhvaluenếu có sẵn và được hỗ trợ. Nếu không, nó sẽ ném ra lỗi. BluetoothRemoteGATTDescriptor.writeValue()Experimental-
Đặt thuộc tính
valuethành các byte chứa trong mộtArrayBuffervà trả về mộtPromise.
Thông số kỹ thuật
| Specification |
|---|
| Web Bluetooth> # bluetoothgattdescriptor-interface> |