Merge pull request #1267 from RCGV1/want-config-69420

Reset wantConfigRetries on disconnect
This commit is contained in:
Garth Vander Houwen 2025-06-15 10:32:22 -07:00 committed by GitHub
commit 355e960359
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -255,6 +255,7 @@ class BLEManager: NSObject, CBPeripheralDelegate, MqttClientProxyManagerDelegate
// Disconnect Peripheral Event
func centralManager(_ central: CBCentralManager, didDisconnectPeripheral peripheral: CBPeripheral, error: Error?) {
resetWantConfigRetries()
self.connectedPeripheral = nil
self.isConnecting = false
self.isConnected = false