最終更新:2022-07-13 (水) 01:04:20 (625d)
Android/BLE
メモ
ドキュメント
パーミッション
- android.permission.BLUETOOTH
- android.permission.BLUETOOTH_ADMIN
- android.permission.ACCESS_FINE_LOCATION
- android.permission.ACCESS_COARSE_LOCATION - Android 9(API レベル 28)以下
クラス
android.bluetooth.BluetoothGattServer
android.bluetooth.BluetoothAdapter
android.bluetooth.BluetoothManager
処理
Android/Bluetooth/スキャン
- BluetoothAdapter.startLeScan - This method was deprecated in API level 21. use BluetoothLeScanner.startScan() instead.
- コールバック: BluetoothAdapter.LeScanCallback
- BluetoothLeScanner.startScan (Android 5.0~)
接続
GATT
- android.bluetooth.BluetoothGattServerCallback?
- android.bluetooth.BluetoothGattService