/thetav-web-ble

Web Bluetooth API Sample for THETA V

Primary LanguageHTMLMIT LicenseMIT

thetav-web-ble

THETA V BLEをWeb Bluetooth APIで操作する為のサンプルページ

https://toshi3221.github.io/thetav-web-ble/

動作環境

  • macOS Chrome (WindowsではCharacteristic Writeが出来ません(2017/12/26現在))
  • https

手順

  1. Wi-Fi接続後、camera._setBluetoothDevicesにて認証用UUIDを設定する
    • ex. curl -X POST 192.168.1.1/osc/commands/execute --data '{"name":"camera._setBluetoothDevice","parameters":{"uuid":"7ebafb2f0-0e0f-40a2-a84f-e2f098dc13c3"}}' -H 'content-type: application/json'
  2. https://toshi3221.github.io/thetav-web-ble/ にmacOS Chromeにてアクセス
  3. Device Name にシリアルナンバーからYLを削除した数字、Auth UUID に認証用UUIDを入力
  4. Connect押下でスキャンされたデバイスをペア設定
  5. 接続後、カメラ操作可能となります。サンプルはTake Pictureに対応