最終更新:2024-04-30 (火) 02:22:30 (17d)  

BluetoothDevice.connectGatt
Top / BluetoothDevice.connectGatt

Connect to GATT Server hosted by this device.

https://developer.android.com/reference/android/bluetooth/BluetoothDevice?hl=ja#connectGatt(android.content.Context, boolean, android.bluetooth.BluetoothGattCallback)

public BluetoothGatt connectGatt (Context context, 
                boolean autoConnect, 
                BluetoothGattCallback callback)

パラメータ

autoConnect

  • Whether to directly connect to the remote device (false) or to automatically connect as soon as the remote device becomes available (true).

コールバック

関連