LoginSignup
14
11

More than 5 years have passed since last update.

WebBluetoothAPIの公式ドキュメントを翻訳しました

Last updated at Posted at 2016-08-19

WebBluetoothAPIとは

このAPIは、ブラウザ上からBluetoothLE(BLE)デバイスを操作することが出来るAPIです。

これにより、従来は iOS や Android で専用のアプリを作っていたところ、
javascript だけでBLEを操作するアプリケーションの開発が可能になってきます。
このAPIは現在進行形で実装されており、つい先月にはMacからも利用出来るようになりました。
Google I/O では、Fetch API や Web MIDI とともに、次世代のweb技術として紹介もされています。
What's next for the web? - GoogleI/O

この WebBluetoothAPI を利用したライブラリの開発をしており、
半年ほどこのAPIを触ってきていますが、日本語の情報がほとんど無いので翻訳してみました。

Web Bluetooth API 日本語ドキュメント
https://tkybpp.github.io/web-bluetooth-jp/
(翻訳元)
https://webbluetoothcg.github.io/web-bluetooth/

なお、W3Cのコミュニティグループから翻訳の許可をいただいており、
公認ではありますが公式ではありません。
翻訳に間違いがあればご指摘いただけると幸いです。

目次

  1. はじめに
    1. サンプル
  2. セキュリティとプライバシーへの配慮
    1. 強力なデバイスへのアクセス
    2. 信頼されたサーバーは悪質なコードを提供できる
    3. デバイスへの攻撃
    4. Bluetooth デバイス識別子
      1. リモート Bluetooth デバイスの識別子
      2. UA の Bluetooth アドレス
  3. デバイスの検索
    1. Permission API の統合
  4. デバイスの表現
    1. グローバル Bluetooth デバイスプロパティ
    2. Bluetooth デバイス
      1. Advertising Events への応答
        1. BluetoothManufacturerDataMap
        2. BluetoothServiceDataMap
  5. GATT インタラクション
    1. GATT 情報モデル
      1. Bluetooth cache
      2. Bluetooth 階層ナビゲーション
      3. Services, Characteristics, Descriptors 識別子
    2. BluetoothRemoteGATTServer
    3. BluetoothRemoteGATTService
    4. BluetoothRemoteGATTCharacteristic
      1. BluetoothCharacteristicProperties
    5. BluetoothRemoteGATTDescriptor
    6. イベント
      1. Bluetooth ツリー
      2. イベントタイプ
      3. 切断への応答
      4. Notifications と Indications への応答
      5. Service Changes への応答
      6. IDL イベントハンドラ
    7. エラーハンドリング
  6. UUID
    1. 標準化された UUID
  7. GATT ブラックリスト
  8. ナビゲーションインタフェースの拡張
  9. 用語と規則

Web Bluetooth API 日本語ドキュメント
https://tkybpp.github.io/web-bluetooth-jp/

サンプル

APIの実装サンプルはこちらで書いてみました。
WebBluetoothAPIを使ってブラウザからBLEデバイスを操作する

14
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
11