From 14bd3f1da8aad5788b5dc806a55f28701d0a4bf9 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 25 Apr 2024 22:37:43 +0100 Subject: [PATCH] delays --- ESPBMS.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ESPBMS.ino b/ESPBMS.ino index 86afb87..0c99c2e 100644 --- a/ESPBMS.ino +++ b/ESPBMS.ino @@ -24,15 +24,17 @@ bool gotCellInfo; void loop() { Serial.printf("\r\n\r\n===============================\r\n\r\n"); + delay(1000); Serial.println("Scanning..."); BLEScan* pBLEScan = BLEDevice::getScan(); // Create new scan pBLEScan->setActiveScan(true); // Active scan uses more power, but get results faster - BLEScanResults foundDevices = pBLEScan->start(10); //seconds + BLEScanResults foundDevices = pBLEScan->start(5); //seconds Serial.println("Devices found: " + String(foundDevices.getCount())); for (int i = 0; i < foundDevices.getCount(); i++) { + delay(1000); Serial.printf("\r\n\r\n===============================\r\n\r\n"); BLEAdvertisedDevice advertisedDevice = foundDevices.getDevice(i);