update
This commit is contained in:
17
evDash.ino
17
evDash.ino
@@ -39,7 +39,6 @@
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
#include <SPI.h>
|
||||
#include <BLEDevice.h>
|
||||
#include "BoardInterface.h"
|
||||
|
||||
#ifdef BOARD_TTGO_T4
|
||||
@@ -49,6 +48,7 @@
|
||||
#include "BoardM5stackCore.h"
|
||||
#endif // BOARD_M5STACK_CORE
|
||||
|
||||
#include <BLEDevice.h>
|
||||
#include <sys/time.h>
|
||||
#include "config.h"
|
||||
#include "LiveData.h"
|
||||
@@ -66,9 +66,6 @@
|
||||
SIM800L* sim800l;
|
||||
#endif //SIM800L_ENABLED
|
||||
|
||||
// PLEASE CHANGE THIS SETTING for your BLE4
|
||||
uint32_t PIN = 1234;
|
||||
|
||||
// Temporary variables
|
||||
char ch;
|
||||
String line;
|
||||
@@ -218,6 +215,8 @@ class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
|
||||
}
|
||||
};
|
||||
|
||||
uint32_t PIN = 1234;
|
||||
|
||||
/**
|
||||
BLE Security
|
||||
*/
|
||||
@@ -637,11 +636,11 @@ void loop() {
|
||||
}
|
||||
}
|
||||
|
||||
// Can send next command from queue to OBD
|
||||
if (liveData->canSendNextAtCommand) {
|
||||
liveData->canSendNextAtCommand = false;
|
||||
doNextAtCommand();
|
||||
}
|
||||
// Can send next command from queue to OBD
|
||||
if (liveData->canSendNextAtCommand) {
|
||||
liveData->canSendNextAtCommand = false;
|
||||
doNextAtCommand();
|
||||
}
|
||||
|
||||
#ifdef SIM800L_ENABLED
|
||||
if (liveData->params.lastDataSent + SIM800L_TIMER < liveData->params.currentTime && liveData->params.sim800l_enabled) {
|
||||
|
||||
Reference in New Issue
Block a user