bed24da57c
new file: .idea/.idea.GSM-Chata.dir/.idea/encodings.xml
new file: .idea/.idea.GSM-Chata.dir/.idea/indexLayout.xml
new file: .idea/.idea.GSM-Chata.dir/.idea/vcs.xml
new file: .vscode/settings.json
modified: platformio.ini
new file: src/Data/DeviceBase.cpp
new file: src/Data/DeviceBase.h
new file: src/Data/GSMData.cpp
new file: src/Data/GSMData.h
new file: src/Data/PinTypeIn.cpp
new file: src/Data/PinTypeIn.h
new file: src/Data/PinTypeOut.cpp
new file: src/Data/PinTypeOut.h
new file: src/Device/EEPROMUtils.cpp
modified: src/Device/EEPROMUtils.h
new file: src/Device/GSMDevice.cpp
new file: src/Device/GSMDevice.h
new file: src/Device/WebServer.cpp
new file: src/Helper/HTMLGenerator.cpp
new file: src/Helper/HTMLGenerator.h
new file: src/PinDefinitions.cpp
new file: src/PinDefinitions.h
new file: src/Utills.cpp
new file: src/Utills.h
deleted: src/Zabezpecovacka-GSM.cpp
new file: src/main.cpp
29 lines
538 B
C++
29 lines
538 B
C++
#ifndef GSMDevice_H
|
|
#define GSMDevice_H
|
|
|
|
#include <Data/GSMData.h>
|
|
#include <SoftwareSerial.h>
|
|
#include <Data/GSMData.h>
|
|
|
|
class GSMDevice
|
|
{
|
|
private:
|
|
SoftwareSerial gsmSerial;
|
|
// Methods
|
|
void end();
|
|
void ExecuteAtCommand(const String &atCommand);
|
|
String ReadStringSerialPort();
|
|
void sendSMSToGSM(GSMData gsmData);
|
|
|
|
public:
|
|
// Constructor
|
|
GSMDevice(uint8_t pinRx, uint8_t pinTx, long baudRate);
|
|
|
|
// Destructor
|
|
~GSMDevice();
|
|
|
|
// Methods
|
|
void sendSMS(GSMData gsmData);
|
|
};
|
|
|
|
#endif // GSMDevice_H
|