aboutsummaryrefslogtreecommitdiff
path: root/client/Client.h
diff options
context:
space:
mode:
authorUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2022-10-30 12:40:53 +0100
committerUnavailableDev <69792062+UnavailableDev@users.noreply.github.com>2022-10-30 12:40:53 +0100
commit26564caa92d02a85a23fcd768a301fc76ec7c4cd (patch)
treef0c3845ee79a3c29d0b8a8c4cb2d3caaeb1efb5d /client/Client.h
parent6b2ff1c137773b91ce9552446a7ac91dd951b02b (diff)
parent75064a08587bc960c06d2324a0334ee88441fb35 (diff)
Merge branch 'qt-settings' of https://github.com/UnavailableDev/avans-whether-station-Qt into qt-settings
Diffstat (limited to 'client/Client.h')
-rw-r--r--client/Client.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/client/Client.h b/client/Client.h
index 10af3e1..b90e5e9 100644
--- a/client/Client.h
+++ b/client/Client.h
@@ -1,5 +1,6 @@
#ifndef CLIENT_H
#define CLIENT_H
+
#include <QTcpSocket>
#include <QTextStream>
#include <QTimer>
@@ -7,6 +8,7 @@
#include <QSqlQuery>
#include "HandleMessage.h"
+#include "../shared/wifi.h"
// class client for wheather station
class Client : public QObject
@@ -27,19 +29,14 @@ private:
QTcpSocket *socket; // tcpsocket for communicating
QTimer *timer; // timer to read every second what time it curruntly is.
- qint16 NextMinute; // timing for next minute
// qint16 currentMinute; // timing for currentMinute
HandleMessage Handlemsg; // add HandleMessage to Client.h
- int tcpPortAddress = 80; // port of communication via tcp
- QString networkAddress = "192.168.137.76"; // network address for commincation via tcp
-
- QString msg = "last-records "; // part of mesage to send to wheather staion
- char totalRecords = '1'; // total records to ask wheather station
- char offsetRecords = '0'; // offset from reqeusting records
-
-
+ int tcpPortAddress = WS_SERVER_PORT; // port of communication via tcp
+ QString networkAddress = WS_ESP8266_WLAN_IP; // network address for commincation via tcp
+ uint8_t totalRecords = 1; // total records to ask wheather station
+ uint8_t offsetRecords = 0; // offset from reqeusting records
};
#endif // CLIENT_H