BleConnectionParameters class
A snapshot of the active BLE link parameters for a connected device.
Populated by SplendidBleCentral.readConnectionParameters. On Android, PHY values come from the
BluetoothGattCallback.onPhyRead callback, and connection interval values come from
BluetoothGattCallback.onConnectionUpdated. Both callbacks fire automatically during connection setup, so by the
time the dashboard is displayed the cache should be populated.
On iOS, Core Bluetooth does not expose these link-layer parameters to the central role, so SplendidBleCentral.readConnectionParameters returns null on that platform.
Constructors
- BleConnectionParameters({required BlePhy txPhy, required BlePhy rxPhy, double? connectionIntervalMs, int? slaveLatency, int? supervisionTimeoutMs})
-
Creates a BleConnectionParameters instance.
const
- BleConnectionParameters.fromMap(Map map)
-
Constructs a BleConnectionParameters from the map returned by the native platform over the method channel.
factory
Properties
- connectionIntervalMs → double?
-
Current connection interval in milliseconds.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- rxPhy → BlePhy
-
The PHY currently in use for the incoming (RX) link direction.
final
- slaveLatency → int?
-
The peripheral latency (slave latency) in number of connection events.
final
- supervisionTimeoutMs → int?
-
Supervision timeout in milliseconds.
final
- txPhy → BlePhy
-
The PHY currently in use for the outgoing (TX) link direction.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited