fix: reconnect retry for unexpected BLE disconnects #8

Merged
payfrit merged 1 commit from schwifty/reconnect-on-unexpected-disconnect into main 2026-03-22 00:17:30 +00:00

1 commit

Author SHA1 Message Date
df6601c50b fix: add reconnect retry for unexpected disconnects during auth/write
Instead of immediately failing on disconnect during authenticating or
writing states, retry up to 2 times with backoff. Resets passwordIndex
on reconnect so re-auth starts fresh (fixes issue where burned password
attempts caused retry failures). Also fixes passwordIndex reset in the
device-info safety-net reconnect path.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 23:54:13 +00:00