26 QNetworkDatagram datagram =
udpSocket->receiveDatagram();
31 btSocket->open(QIODevice::ReadWrite);
32 qDebug() <<
"Opening btSocket";
34 foo =
btSocket->write(datagram.data());
36 qDebug() <<
"Can't send" << datagram.data().toHex() <<
"to" <<
btSocket->peerAddress().toString();
38 qDebug() << datagram.data().toHex() <<
"sent to" <<
btSocket->peerAddress().toString() <<
"(" << foo
39 <<
"/" << datagram.data().length() <<
"bytes ) by" <<
btSocket;
43 qDebug() <<
"Can't send" << datagram.data().toHex() <<
", no client connected";
46 qInfo() <<
"No datagram received in Fac2App";
53 qDebug() <<
"New btSocket in F2A";
QBluetoothSocket * btSocket
void sendMessageToApplication()
void newBTSocket(QBluetoothSocket *bt)
Fac2App(QBluetoothSocket *bt, ParameterDENM *denm)