This commit is contained in:
Ján Mátik
2020-12-23 12:09:37 +01:00
13 changed files with 202 additions and 219 deletions

View File

@@ -34,6 +34,9 @@
#define SCREEN_CHARGING 5
#define SCREEN_SOC10 6
//
#define MONTH_SEC 2678400
// Structure with realtime values
typedef struct {
// System
@@ -55,7 +58,7 @@ typedef struct {
char sdcardFilename[32];
// Car params
bool ignitionOn;
bool ignitionOnPrevious;
time_t lastIgnitionOnTime;
uint64_t operationTimeSec;
bool sdcardCanNotify;
bool forwardDriveMode;
@@ -218,9 +221,10 @@ class LiveData {
uint16_t scanningDeviceIndex = 0;
MENU_ITEM* menuItems;
// Comm
boolean commConnected = true;
// Bluetooth4
boolean bleConnect = true;
boolean bleConnected = false;
BLEAddress *pServerAddress;
BLERemoteCharacteristic* pRemoteCharacteristic;
BLERemoteCharacteristic* pRemoteCharacteristicWrite;