From b6078f24762aeda6fb58597e3aa26ad9a36c5995 Mon Sep 17 00:00:00 2001 From: ranbo Date: Thu, 14 May 2026 14:29:32 +0800 Subject: [PATCH] Tell Windows to actively maintain the BLE connection. --- lib/win/src/ble_manager.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/win/src/ble_manager.cc b/lib/win/src/ble_manager.cc index dc01c375..8a920156 100644 --- a/lib/win/src/ble_manager.cc +++ b/lib/win/src/ble_manager.cc @@ -362,6 +362,8 @@ void BLEManager::OnGattSessionCreated(IAsyncOperation asyncOp, Asyn peripheral.gattSession = session; auto token = session.MaxPduSizeChanged(onPduSizeChanged); peripheral.maxPduSizeChangedToken = token; + + session.MaintainConnection(true); } else {