diff options
| author | lonkaars <loek@pipeframe.xyz> | 2022-10-11 19:21:52 +0200 | 
|---|---|---|
| committer | lonkaars <loek@pipeframe.xyz> | 2022-10-11 19:21:52 +0200 | 
| commit | fbb6a5a1570666ad283afac6e545c578e65475b8 (patch) | |
| tree | 5efe464ac2c41ae9c932043451606bf2b3036db7 /client/esp/mytcpsocket.cpp | |
| parent | b455848ee62b06ba73801cff477c6ff214c4053e (diff) | |
client merge done
Diffstat (limited to 'client/esp/mytcpsocket.cpp')
| -rw-r--r-- | client/esp/mytcpsocket.cpp | 44 | 
1 files changed, 0 insertions, 44 deletions
| diff --git a/client/esp/mytcpsocket.cpp b/client/esp/mytcpsocket.cpp deleted file mode 100644 index 92dd67a..0000000 --- a/client/esp/mytcpsocket.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include <mytcpsocket.h> - -MyTcpSocket::MyTcpSocket(QObject *parent) : -    QObject(parent) -{ -} - -void MyTcpSocket::doConnect() -{ -    socket = new QTcpSocket(this); - -    connect(socket, SIGNAL(connected()),this, SLOT(connected())); -    connect(socket, SIGNAL(disconnected()),this, SLOT(disconnected())); -   // connect(socket, SIGNAL(bytesWritten(qint64)),this, SLOT(bytesWritten(qint64))); -    connect(socket, SIGNAL(readyRead()),this, SLOT(readyRead())); -    qDebug() << "connectig..."; - -    socket->connectToHost("192.168.137.141",80); - -    if(!socket->waitForConnected(5000)){ -        qDebug()<<"Error: "<< socket->errorString(); -    } -} - -void MyTcpSocket::connected(){ -    qDebug() << "connected..."; - -    socket->write("Weerdata: Temp:?\r\n\r\n\r\n\r\n"); - -} -void MyTcpSocket::disconnected(){ -    qDebug() << "disconnected..."; - -} - -void MyTcpSocket::bytesWritten(qint64 bytes){ -    qDebug() << bytes << "bytes written..."; - -} -void MyTcpSocket::readyRead(){ -    qDebug() << "reading..."; - -    qDebug() << socket->readAll(); -} |