From a9dffc79b8e629e9672088d98f91ce49218da1d0 Mon Sep 17 00:00:00 2001 From: technyon Date: Sat, 13 Jul 2024 12:57:43 +0200 Subject: [PATCH] update scan interval and window to nuki recommendations --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 7c720c7..9de2b72 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -360,7 +360,9 @@ void setup() Serial.print(gpioDesc.c_str()); bleScanner = new BleScanner::Scanner(); - bleScanner->initialize("NukiHub"); + // Scan interval and window according to Nuki recommendations: + // https://developer.nuki.io/t/bluetooth-specification-questions/1109/27 + bleScanner->initialize("NukiHub", true, 40, 40); bleScanner->setScanDuration(10); #if PRESENCE_DETECTION_ENABLED