20 QBluetoothSocket *socket = qobject_cast<QBluetoothSocket *>(sender());
23 qWarning() <<
"Can't read bluetooth message";
26 QNetworkDatagram datagram;
28 datagram.setDestination(QHostAddress::LocalHost,
port);
30 qInfo() <<
"Reading data";
31 datagram.setData(socket->readAll());
32 qInfo() << datagram.data().toHex() <<
"received";
45 while(msgLen == -1 && timer.elapsed() < 10000)
71 qInfo() <<
"Bluetooth socket initialized";
81 QBluetoothSocket *socket = qobject_cast<QBluetoothSocket *>(sender());
84 qDebug() << socket->peerAddress().toString() <<
"disconnect :(";
92 socket->deleteLater();
98 quint8 result = success;
100 QDataStream ds(&res, QIODevice::WriteOnly);
StationID_t originatingStationID
e_failureNotification * failureNotification() const
failureNotification Failure notitfication getter.
void denmTriggerResult(bool success, ActionID_t actionID)
SequenceNumber_t sequenceNumber
void newBTSocket(QBluetoothSocket *bt)
App2Fac(QBluetoothServer *server, QBluetoothSocket *bt, ParameterDENM *denm)
QBluetoothServer * rfcommServer
void clientDisconnected()
QBluetoothSocket * btSocket
void sendMessageToDENBasicService()
ActionID_t actionID() const
actionID ActionID getter.
QHostAddress indicationAddress