BluetoothRemoteGATTDescriptor: phương thức writeValue()
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.
Phương thức BluetoothRemoteGATTDescriptor.writeValue() đặt thuộc tính value thành các byte chứa trong một ArrayBuffer, TypedArray, hoặc DataView và trả về một Promise.
Cú pháp
js
writeValue(buffer)
Tham số
buffer-
Đặt giá trị bằng các byte chứa trong bộ đệm.
Giá trị trả về
Một Promise.
Thông số kỹ thuật
| Specification |
|---|
| Web Bluetooth> # dom-bluetoothremotegattdescriptor-writevalue> |