THETA V BLEをWeb Bluetooth APIで操作する為のサンプルページ
https://toshi3221.github.io/thetav-web-ble/
- macOS Chrome (WindowsではCharacteristic Writeが出来ません(2017/12/26現在))
- https
- 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'
- ex.
- https://toshi3221.github.io/thetav-web-ble/ にmacOS Chromeにてアクセス
Device Name
にシリアルナンバーからYLを削除した数字、Auth UUID
に認証用UUIDを入力- Connect押下でスキャンされたデバイスをペア設定
- 接続後、カメラ操作可能となります。サンプルはTake Pictureに対応