This commit is contained in:
Lubos Petrovic
2020-12-20 16:42:11 +01:00
parent 7657a724b6
commit 93e1c6fd90
3 changed files with 33 additions and 11 deletions

View File

@@ -2,20 +2,26 @@
#include "LiveData.h"
#include "CommInterface.h"
#include <mcp_can.h>
class CommObd2Can : public CommInterface {
protected:
byte pinCanInt = 15;
//MCP_CAN CAN(12); // Set CS to pin 10
long unsigned int rxId;
unsigned char len = 0;
unsigned char rxBuf[512];
char msgString[128]; // Array to store serial string
public:
void connectDevice() override;
void disconnectDevice() override;
void scanDevices() override;
void mainLoop() override;
//
/* void startBleScan();
bool connectToServer(BLEAddress pAddress);
bool doNextAtCommand();
bool parseRow();
bool parseRowMerged(); */
/* void startBleScan();
bool connectToServer(BLEAddress pAddress);
bool doNextAtCommand();
bool parseRow();
bool parseRowMerged(); */
};