From 8f9e256c64fd6e9ba81a7beb8719388410c61d4b Mon Sep 17 00:00:00 2001 From: James Date: Tue, 23 Apr 2024 21:55:53 +0100 Subject: [PATCH] increase timeout --- ESPBMS.ino | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ESPBMS.ino b/ESPBMS.ino index 1c799d8..a9045f1 100644 --- a/ESPBMS.ino +++ b/ESPBMS.ino @@ -42,13 +42,11 @@ #define BMS_POLLING_INTERVAL 10*60*1000 // data output interval (shorter = connect more often = more battery consumption from BMS) in ms // BLE -#define BLE_MIN_RSSI -75 // minimum signal strength before connection is attempted #define BLE_NAME "BMS 1.1" // name of BMS -#define BLE_ADDRESS "70:e3:97:d2:b0:bb" // address of BMS #define BLE_SCAN_DURATION 1 // duration of scan in seconds #define BLE_REQUEST_DELAY 500 // package request delay after connecting - make this large enough to have the connection established in ms -#define BLE_TIMEOUT 10*1000 // timeout of scan + gathering packets (too short will fail collecting all packets) in ms +#define BLE_TIMEOUT 60*1000 // timeout of scan + gathering packets (too short will fail collecting all packets) in ms #define BLE_CALLBACK_DEBUG true // send debug messages via MQTT & serial in callbacks (handy for finding your BMS address, name, RSSI, etc)