- Move user sketches to 10-OBD-Display-2024/, one folder per sketch - Keep 2-Program Example/Demo_Arduino vendor-only, single docs/ copy - Remove duplicate screenshots/instructions and ELMulator zip - Archive broken LVGL 9 attempt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
66 lines
923 B
C++
66 lines
923 B
C++
#ifndef ELMulator_ATCommands_h
|
|
#define ELMulator_ATCommands_h
|
|
|
|
#include <Arduino.h>
|
|
#include "definitions.h"
|
|
#if USE_WIFI
|
|
#include "OBDWiFiComm.h"
|
|
#else
|
|
#include "OBDSerialComm.h"
|
|
#endif
|
|
|
|
class ATCommands
|
|
{
|
|
|
|
public:
|
|
#if USE_WIFI
|
|
ATCommands(OBDWiFiComm *connection);
|
|
#else
|
|
ATCommands(OBDSerialComm *connection);
|
|
#endif
|
|
~ATCommands();
|
|
|
|
bool process(const String &string);
|
|
|
|
private:
|
|
// Variables
|
|
#if USE_WIFI
|
|
OBDWiFiComm *connection;
|
|
#else
|
|
OBDSerialComm *connection;
|
|
#endif
|
|
void ATD();
|
|
|
|
void ATZ();
|
|
|
|
void ATI();
|
|
|
|
void ATEx(String &x);
|
|
|
|
void ATMx(String &x);
|
|
|
|
void ATLx(String &x);
|
|
|
|
void ATSx(String &x);
|
|
|
|
void ATHx(String &x);
|
|
|
|
void ATSPx(String &x);
|
|
|
|
void ATATx(String &cmd);
|
|
|
|
void ATPC();
|
|
|
|
void ATDPN();
|
|
|
|
void ATDESC();
|
|
|
|
void ATRV();
|
|
|
|
void processCommand(const String &command);
|
|
|
|
bool isATCommand(const String &command);
|
|
};
|
|
|
|
#endif
|