IOT sending data to remote server
i am new to IOT ..i want to send data to remote server using Raspberry pi and Qt...pls seggest me how to do it ....
i am able to send data to local host using Qtcpsoket and Qtcpserver ......
thanks in advance
@viju45 If you're able to send to local host then you should be able to send to other hosts.
What exactly is the problem?
@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
@jsulm thanks for replay ...