BluetoothRemoteGATTServer: getPrimaryServices() method
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("Bluetooth API")}}{{SeeCompatTable}}{{SecureContext_Header}}
The BluetoothRemoteGATTServer.getPrimaryServices() method returns a promise to a list of primary {{domxref("BluetoothRemoteGATTService")}} objects offered by the Bluetooth device for a specified BluetoothServiceUUID.
Syntax
js-nolint
getPrimaryServices(bluetoothServiceUUID)Parameters
bluetoothServiceUUID- : A Bluetooth service universally unique identifier for a specified device.
Return value
A {{jsxref("Promise")}} that resolves to a list of {{domxref("BluetoothRemoteGATTService")}} objects.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}