This includes a fairly large update to how connections are managed in OmniBLE.
- Multiple ready-to-pair pods are detected during pairing, so the user does not inadvertently pair to the wrong pod.
- BLE connection identifier is tracked to ensure reconnection to the correct peripheral
- During session restoration, iOS may have maintained connection to the pod, so that from the pod's point of view, nothing has changed, and creating a session is not needed; changes are included to handle this situation, and not attempt to recreate a session.
It also includes changes to work with the latest Loop dev code, and, in fact, will only compile with dev LoopKit. So I recommend this patch does not land into master until a suitable maintenance branch for FreeAPS is found.
If you create a dev
branch, I can re-submit this PR to point there.