BluetoothRemoteGATTService: phương thức getCharacteristics()
Khả dụng hạn chế
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 BluetoothGATTService.getCharacteristics() trả về một Promise tới một danh sách các thể hiện BluetoothRemoteGATTCharacteristic cho một mã định danh duy nhất toàn cục (UUID) đã cho.
Cú pháp
js
getCharacteristics(characteristics)
Tham số
characteristics-
UUID của một đặc tính, ví dụ
'00002a37-0000-1000-8000-00805f9b34fb'cho đặc tính Heart Rate Measurement.
Giá trị trả về
Một Promise tới một Array các thể hiện BluetoothRemoteGATTCharacteristic.
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| Web Bluetooth> # dom-bluetoothremotegattservice-getcharacteristics> |