FakeBleConnection
Properties
Number of times connectAndAwait has been invoked (including failures).
When non-null, connectAndAwait throws this exception instead of connecting.
Number of times disconnect has been invoked.
When > 0, the next failNextN calls to connectAndAwait return BleConnectionState.Disconnected.
Number of times invalidateServiceCache has been invoked.
Result returned by invalidateServiceCache; defaults to false to match the BleConnection default.
Negotiated write length exposed to callers; null means unknown / not negotiated.
Service UUIDs that should appear missing — profile() throws NoSuchElementException for these.
Optional callback invoked at the end of disconnect (e.g. seed freshly-discovered services on reconnect).
Number of times profile has been invoked.