Files
evDash/CommObd2Can.h
Lubos Petrovic 93e1c6fd90 Can
2020-12-20 16:42:11 +01:00

28 lines
693 B
C++

#pragma once
#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(); */
};