reset Reconnect Attempts
Resets the reconnect attempt counter to zero.
Call this method to allow the state machine to attempt reconnection again after it has reached the maximum number of attempts and transitioned to ConnectionState.Error. This is useful when:
The user manually triggers a retry
External conditions have changed (e.g., Bluetooth was toggled)
A significant amount of time has passed
Note that connect can be called directly without resetting the counter; the counter is automatically reset when a connection succeeds.
See also
Connection State Machine. schedule Reconnect
Connection State Machine. max Reconnect Attempts