I transfer data to the socket, numbers, but their codes come instead.

For example the number 450, its code 52 53 48.

How can I convert this code to a string of type String, or to the number int, so that I can work with it further?

Socket Receive Code:

QByteArray arr = socket->readAll(); foreach(QTcpSocket *socket, sockets) { if (socket->state() == QTcpSocket::ConnectedState) socket->write(arr); } 

Reception of data from wifi to the socket is going, I am sending from the esp8266 module. But in arr, after reception, character codes.

0