- context
- Documentation for this section has not yet been entered.
- autoConnect
- Whether to directly connect to the remote device (false) or to automatically connect as soon as the remote device becomes available (true).
- callback
- GATT callback handler that will receive asynchronous callbacks.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalArgumentException if callback is null
Connect to GATT Server hosted by this device. Caller acts as GATT client. The callback is used to deliver results to Caller, such as connection status as well as any further GATT client operations. The method returns a BluetoothGatt instance. You can use BluetoothGatt to conduct GATT client operations.