Ble Connection
Parameters
The Android Context used for BLE operations. An application context is recommended to avoid memory leaks.
The BluetoothDevice to connect to.
Optional BondManager for handling device bonding operations. If null, bond will return an empty flow.
Whether to automatically attempt reconnection when the connection is lost unexpectedly. Defaults to true.
Base delay in milliseconds for exponential backoff reconnection. The actual delay increases exponentially with each attempt. Defaults to ConnectionStateMachine.DEFAULT_RECONNECT_DELAY_MS.
Maximum delay in milliseconds between reconnection attempts. The exponential backoff will be capped at this value. Defaults to ConnectionStateMachine.DEFAULT_MAX_RECONNECT_DELAY_MS.
Maximum number of reconnection attempts before giving up. When this limit is reached, the state transitions to ConnectionState.Error. Defaults to ConnectionStateMachine.DEFAULT_MAX_RECONNECT_ATTEMPTS.