IOT sending data to remote server
Unsolved
Mobile and Embedded
-
@jsulm actually today i understood that my respbeery pi was server and the other computer was client ....i tested the code with Putty at receiver side .....and i an new to IOT concept ....i am not able to understand how to send it to server now.
server = new QTcpServer(this);
socket = new QTcpSocket(this);connect(server, SIGNAL(newConnection()), this, SLOT(newConnection())); if(!server->listen(QHostAddress::AnyIPv4, 1234)) ui->lineEdit_2->setText("ERROR");
this is how i am use to setup connection
now i want to establish connection with remote server.
-
@viju45 Please read documentation https://doc.qt.io/qt-5/qtcpsocket.html
And take a look at examples: https://doc.qt.io/qt-5/qtnetwork-fortuneclient-example.html