From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- .../web/api/bluetoothremotegattserver/index.html | 79 ++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 files/ru/web/api/bluetoothremotegattserver/index.html (limited to 'files/ru/web/api/bluetoothremotegattserver/index.html') diff --git a/files/ru/web/api/bluetoothremotegattserver/index.html b/files/ru/web/api/bluetoothremotegattserver/index.html new file mode 100644 index 0000000000..f99ea7c5c1 --- /dev/null +++ b/files/ru/web/api/bluetoothremotegattserver/index.html @@ -0,0 +1,79 @@ +--- +title: BluetoothRemoteGATTServer +slug: Web/API/BluetoothRemoteGATTServer +tags: + - API + - Bluetooth + - BluetoothRemoteGATTServer + - Web Bluetooth API + - Интерфейс + - Определение + - Экспериментальное +translation_of: Web/API/BluetoothRemoteGATTServer +--- +
{{APIRef("Bluetooth API")}}{{SeeCompatTable}}
+ +

Интерфейс BluetoothRemoteGATTServer, относящийся к Web Bluetooth API, представляет сервер GATT на удаленном устройстве.

+ +
+

Данная страница описывает Web Bluetooth API от W3C Community Group. BluetoothGattServer (Firefox OS) - Bluetooth API в Firefox OS.

+
+ +

Интерфейс

+ +
interface BluetoothRemoteGATTServer {
+  readonly attribute BluetoothDevice device;
+  readonly attribute boolean connected;
+
+  Promise<BluetoothRemoteGATTServer> connect();
+  void disconnect();
+  Promise<BluetoothRemoteGATTService> getPrimaryService(BluetoothServiceUUID service);
+  Promise<sequence<BluetoothRemoteGATTService>> getPrimaryServices(optional BluetoothServiceUUID service);
+};
+ +

Свойства

+ +
+
{{DOMxRef("BluetoothRemoteGATTServer.connected")}}{{ReadOnlyInline}}
+
Двоичное значение, равное true, если устройство this.device подключено. It can be false while the user agent is physically connected.
+
{{DOMxRef("BluetoothRemoteGATTServer.device")}}{{ReadOnlyInline}}
+
{{DOMxRef("BluetoothDevice")}}, на котором работает сервер.
+
+ +

Методы

+ +
+
{{DOMxRef("BluetoothRemoteGATTServer.connect()")}}
+
Подключение к устройству this.device.
+
{{DOMxRef("BluetoothRemoteGATTServer.disconnect()")}}
+
Отключение от устройства this.device.
+
{{DOMxRef("BluetoothRemoteGATTServer.getPrimaryService()")}}
+
Returns a promise to the primary {{DOMxRef("BluetoothGATTService")}} offered by the bluetooth device for a specified BluetoothServiceUUID.
+
{{DOMxRef("BluetoothRemoteGATTServer.getPrimaryServices()")}}
+
Returns a promise to a list of primary {{DOMxRef("BluetoothGATTService")}} objects offered by the bluetooth device for a specified BluetoothServiceUUID.
+
+ +

Спецификации

+ + + + + + + + + + + + + + +
СпецификацияСтатусКомментарий
{{SpecName("Web Bluetooth", "#bluetoothremotegattserver", "BluetoothRemoteGATTServer")}}{{Spec2("Web Bluetooth")}}Изначальное определение.
+ +

Совместимость

+ + + +

{{Compat("api.BluetoothRemoteGATTServer")}}

+ +
{{APIRef("Web Bluetooth")}}
-- cgit v1.2.3-54-g00ecf