SimulatedBlePlatform class

Deterministic in-memory peripheral for tests. Does not emulate radio timing, OS permissions, pairing or controller-specific limits.

Inheritance

Constructors

SimulatedBlePlatform()

Properties

activeProfile ↔ BleProfile?
getter/setter pair
events → Stream<Map<String, Object?>>
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
notificationEvents → Stream<Map<String, Object>>
no setter
notifications → List<Map<String, Object>>
final
onRead → Stream<BleReadEvent>
no setterinherited
onWrite → Stream<BleWriteEvent>
no setterinherited
ownershipKey → Object
Adapters that share native channels must share this ownership identity.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subscribers → Map<String, Set<String>>
final
values → Map<String, List<int>>
final

Methods

checkSupport() → Future<BleCapabilities>
override
connect(String clientId) → void
disconnect(String clientId) → void
dispose() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify(String characteristicUuid, List<int> value) → Future<void>
override
notifyClient(String characteristicUuid, List<int> value, String clientId) → Future<void>
override
read(String uuid, {String clientId = 'test-client', int offset = 0}) → Future<List<int>>
requestPermissions() → Future<BleCapabilities>
On Android, requires a foreground Activity. On Apple, system-managed.
override
setRequestHandler(BleRequestHandler? handler) → void
override
setValue(String characteristicUuid, List<int> value) → Future<void>
override
startProfile(BleProfile profile) → Future<void>
override
startServer({required String serviceUuid, required List<BleCharacteristic> characteristics}) → Future<void>
inherited
stopServer() → Future<void>
override
subscribe(String uuid, String clientId) → void
toString() → String
A string representation of this object.
inherited
unsubscribe(String uuid, String clientId) → void
write(String uuid, List<int> value, {String clientId = 'test-client', int offset = 0}) → Future<void>

Operators

operator ==(Object other) → bool
The equality operator.
inherited