onServicesDiscovered

open override fun onServicesDiscovered(gatt: BluetoothGatt, status: Int)

Called when remote device services have been discovered.

This callback is invoked after BluetoothGatt.discoverServices completes. On success, the discovered services and their characteristics are available via BluetoothGatt.getServices.

Parameters

gatt

The BluetoothGatt instance for the connection.

status

BluetoothGatt.GATT_SUCCESS if services were discovered successfully, or an error code if the discovery failed.

See also

ConnectionStateMachine.handleServicesDiscovered