FaketoothDelaySettings class
A class that defines delay settings for simulating Bluetooth Low Energy (BLE) operations in Faketooth.
This class allows you to configure delays for various BLE operations performed by the Faketooth simulator. You can customize the delay duration for scanning peripherals, connecting peripherals, canceling peripheral connections, discovering services, discovering characteristics, discovering included services, discovering descriptors for characteristics, reading values for characteristics, writing values for characteristics, reading values for descriptors, and writing values for descriptors.
Example usage:
FaketoothDelaySettings delaySettings = FaketoothDelaySettings(
scanForPeripheralDelayInSeconds: 2.0,
connectPeripheralDelayInSeconds: 3.0,
);
Constructors
- FaketoothDelaySettings({double scanForPeripheralDelayInSeconds = 1.0, double connectPeripheralDelayInSeconds = 1.0, double cancelPeripheralConnectionDelayInSeconds = 1.0, double discoverServicesDelayInSeconds = 0.1, double discoverCharacteristicsDelayInSeconds = 0.1, double discoverIncludedServicesDelayInSeconds = 0.1, double discoverDescriptorsForCharacteristicDelayInSeconds = 0.1, double readValueForCharacteristicDelayInSeconds = 0.1, double writeValueForCharacteristicDelayInSeconds = 0.1, double readValueForDescriptorDelayInSeconds = 0.1, double writeValueForDescriptorDelayInSeconds = 0.1})
-
Creates a new instance of FaketoothDelaySettings.
const
Properties
- cancelPeripheralConnectionDelayInSeconds → double
-
The delay duration in seconds for canceling peripheral connections.
final
- connectPeripheralDelayInSeconds → double
-
The delay duration in seconds for connecting peripherals.
final
- discoverCharacteristicsDelayInSeconds → double
-
The delay duration in seconds for discovering characteristics.
final
- discoverDescriptorsForCharacteristicDelayInSeconds → double
-
The delay duration in seconds for discovering descriptors for characteristics.
final
- discoverIncludedServicesDelayInSeconds → double
-
The delay duration in seconds for discovering included services.
final
- discoverServicesDelayInSeconds → double
-
The delay duration in seconds for discovering services.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- readValueForCharacteristicDelayInSeconds → double
-
The delay duration in seconds for reading values for characteristics.
final
- readValueForDescriptorDelayInSeconds → double
-
The delay duration in seconds for reading values for descriptors.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scanForPeripheralDelayInSeconds → double
-
The delay duration in seconds for scanning peripherals.
final
- writeValueForCharacteristicDelayInSeconds → double
-
The delay duration in seconds for writing values for characteristics.
final
- writeValueForDescriptorDelayInSeconds → double
-
The delay duration in seconds for writing values for descriptors.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toArguments(
) → Map< String, double> - Converts the delay settings to a map of argument names and delay durations.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited