Fix BLE connection handling (#4137)
Remove device from Peer list if connection fails. Only call onConnect callback if connection was successful. Only call onDisconnect callback if the connection was previously connected (ESP_GATTC_DISCONNECT_EVT is fired on a unsuccessful connection attempt also). Resolves a number of issues with phantom events and callbacks being fired.
Showing
Please register or sign in to comment