Web Bluetooth API

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。

Web Bluetooth API は、Bluetooth Low Energy の周辺機器に接続して操作する機能を提供します。

メモ: この API は Web Workers では 使用できません 。(WorkerNavigator 経由では公開されていません)

インターフェイス

Bluetooth

指定のオプションに合致する BluetoothDevice オブジェクトで解決する Promise を返します。

BluetoothCharacteristicProperties

特定の BluetoothRemoteGATTCharacteristic のプロパティを提供します。

BluetoothDevice

特定のスクリプト実行環境内の Bluetooth デバイスを表します。

BluetoothRemoteGATTCharacteristic

GATT キャラクタリスティックを表します。これは、周辺機器のサービスに関する詳細情報を提供する基本的なデータ要素です。

BluetoothRemoteGATTDescriptor

GATT ディスクリプターを表します。これは、キャラクタリスティックの値に関する詳細情報を提供します。

BluetoothRemoteGATTServer

リモートデバイス上の GATT サーバーを表します。

BluetoothRemoteGATTService

GATT サーバーにより提供されるサービスを表します。デバイス、参照されるサービス、このサービスのキャラクタリスティックのリストも含みます。

仕様書

Specification
Web Bluetooth
# bluetooth

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Bluetooth
Experimental
getAvailability
Experimental
getDevices
Experimental
requestDevice
Experimental
options.exclusionFilters parameter
Experimental
options.filter.manufacturerData parameter
Experimental

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
Partial support
Partial support
No support
No support
Experimental. Expect behavior to change in the future.
See implementation notes.
User must explicitly enable this feature.
Has more compatibility info.