Add serial BLE scan and BMS selection
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user