Improve BLE scan reliability for BMS selection
This commit is contained in:
@@ -85,6 +85,9 @@ int scanBleDevices(uint32_t scanSeconds) {
|
||||
Serial.println("BLE: Disconnecting BMS before scan");
|
||||
client->disconnect();
|
||||
bmsData.connected = false;
|
||||
|
||||
Serial.println("BLE: Waiting for device advertising...");
|
||||
delay(2000);
|
||||
}
|
||||
|
||||
bleScanResultCount = 0;
|
||||
|
||||
Reference in New Issue
Block a user