diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-30 11:20:43 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-30 11:21:00 +0100 |
commit | e4f41ef8b56b76214d05bce34ffd5a8896da24c9 (patch) | |
tree | efe55c9ef28e4c787e10a5b85319b242c7525e9a /client/Client.h | |
parent | e473fe14614401342cdc3afe3f6deee4831e6e24 (diff) | |
parent | af008eb04e3a5705eec63839abc5791454e763ce (diff) |
finish second merge
Diffstat (limited to 'client/Client.h')
-rw-r--r-- | client/Client.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/client/Client.h b/client/Client.h index 10af3e1..f675a89 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,15 @@ 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 + int tcpPortAddress = WS_SERVER_PORT; // port of communication via tcp + QString networkAddress = WS_ESP8266_WLAN_IP; // 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 - - - }; #endif // CLIENT_H |