getCachedServices

Gets the list of cached GATT services for this device.

This method returns services that were discovered during a previous connection and cached for faster reconnection. The cache persists across connection cycles, allowing the application to access service information without waiting for a new service discovery operation.

Note: The cached services are snapshots from the last successful service discovery. If the remote device's services have changed (e.g., firmware update), call clearServiceCache to force a fresh discovery on the next connection.

Return

A list of BluetoothGattService objects if services have been cached for this device, or null if no cache exists.

See also