fix: auto-reconnect on disconnect during device info read #5
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "schwifty/fix-device-info-disconnect-retry"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Beacon drops BLE connection during the optional MAC address query (0x30) after auth succeeds. This triggers: "Disconnected while reading device information..."
The MAC read is a nice-to-have (we use it in the success callback) but not required for provisioning.
Fix
skipDeviceInfoReadflag so the retry skips the MAC query and goes straight to config writeconnectionRetryCount/MAX_CONNECTION_RETRIES(up to 3 attempts)What changed
skipDeviceInfoReadflag in provisioning statefail()dxSmartReadDeviceInfoBeforeWrite()checks skip flag and bypasses MAC readPull request closed