Mon, 28 Mar 2022 16:54:08 +0200
Added websocket connection to the bmsd server. Dropped MQTT, not needed. MySQL and webSockets is enough.
#ifndef _DATABASE_H #define _DATABASE_H #include <QSqlDatabase> #include <QDebug> #include <QSettings> class DataBase : public QObject { Q_OBJECT public: explicit DataBase(QObject *parent = 0); ~DataBase(); bool openDataBase(bool develop); void closeDataBase(); private: QSqlDatabase db; }; static DataBase *db; #endif