SimulatedBleClientTransport class
Test-only link between the actual Dart client and server implementations.
- Inheritance
-
- Object
- BleClientTransport
- SimulatedBleClientTransport
Constructors
- SimulatedBleClientTransport(SimulatedBlePlatform server, {String clientId = 'client', int writeLimit = 20})
Properties
-
adapterStates
→ Stream<
BleAdapterState> -
no setteroverride
- clientId → String
-
final
-
disconnected
→ Stream<
void> -
no setteroverride
-
discovered
→ Stream<
BleDiscoveredServer> -
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
notifications
→ Stream<
BleRawNotification> -
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- server → SimulatedBlePlatform
-
final
- writeLimit → int
-
final
Methods
-
checkSupport(
) → Future< BleAdapterState> -
override
-
connect(
String id) → Future< void> -
override
-
disconnect(
) → Future< void> -
override
-
discover(
) → Future< List< BleRemoteCharacteristic> > -
override
-
dispose(
) → Future< void> -
override
-
maximumWriteBytes(
) → Future< int> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → Future< List< int> > -
override
-
requestPermissions(
) → Future< BleAdapterState> -
override
-
startScan(
List< String> serviceUuids) → Future<void> -
override
-
stopScan(
) → Future< void> -
override
-
subscribe(
String key, bool enabled) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, List< int> bytes) → Future<void> -
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited