getServices

Gets the list of discovered GATT services for this device.

This method returns services from the cache if available from previous connections, or from the current active GATT connection. The service cache allows faster access to service information on reconnection without waiting for a new service discovery.

The cache is populated automatically when service discovery completes successfully. Use clearServiceCache if you need to force a fresh service discovery (e.g., after a firmware update on the remote device).

Return

A list of BluetoothGattService objects representing the device's GATT services, or null if no services have been discovered yet and no cache exists.

See also