Add serial BLE scan and BMS selection

This commit is contained in:
2026-06-04 01:48:26 -06:00
parent 83b7c73dc6
commit 2411e91f8d
3 changed files with 142 additions and 0 deletions
+11
View File
@@ -1,6 +1,13 @@
#pragma once
#define BMS_MAX_CELLS 8
#define MAX_BLE_SCAN_RESULTS 10
struct BleScanResult {
String name;
String address;
int rssi = 0;
};
struct BmsData {
bool connected = false;
@@ -28,3 +35,7 @@ extern BmsData bmsData;
void initBms();
void updateBms();
int scanBleDevices(uint32_t scanSeconds = 10);
int getBleScanResultCount();
const BleScanResult* getBleScanResult(int index);