Rewrite electricity-logger to use an sqlite3 database

This commit is contained in:
2022-06-25 22:17:46 +02:00
parent 458d824dc8
commit 5b09b06bcf
62 changed files with 5937 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
#pragma once
#include <string>
#include <termios.h>
class SerialPort {
private:
const int device;
termios configuration, oldConfiguration;
void SetAttributes(const speed_t baudrate = B115200);
protected:
public:
std::string ReadLine();
SerialPort(const int fd);
~SerialPort();
SerialPort(const SerialPort &) = delete;
SerialPort(SerialPort &&) = delete;
SerialPort & operator=(const SerialPort &) = delete;
SerialPort & operator=(SerialPort &&) = delete;
};