--- title: BluetoothRemoteGATTServer slug: Web/API/BluetoothRemoteGATTServer tags: - API - Bluetooth - BluetoothRemoteGATTServer - Web Bluetooth API - Интерфейс - Определение - Экспериментальное translation_of: Web/API/BluetoothRemoteGATTServer ---
Интерфейс 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);
};
true, если устройство this.device подключено. It can be false while the user agent is physically connected.this.device.this.device.BluetoothServiceUUID.BluetoothServiceUUID.| Спецификация | Статус | Комментарий |
|---|---|---|
| {{SpecName("Web Bluetooth", "#bluetoothremotegattserver", "BluetoothRemoteGATTServer")}} | {{Spec2("Web Bluetooth")}} | Изначальное определение. |
{{Compat("api.BluetoothRemoteGATTServer")}}