Merge pull request #1929 from srcejon/freq_scanner

Pager Demod: Add null terminator in UDP packets
pull/1935/head
Edouard Griffiths 2023-12-14 17:22:02 +01:00 zatwierdzone przez GitHub
commit 5ab23dac45
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -180,10 +180,15 @@ bool PagerDemod::handleMessage(const Message& cmd)
{
QByteArray message;
message.append(report.getDateTime().toString().toLatin1());
message.append('\0');
message.append(QString::number(report.getAddress()).toLatin1());
message.append('\0');
message.append(QString::number(report.getFunctionBits()).toLatin1());
message.append('\0');
message.append(report.getAlphaMessage().toLatin1());
message.append('\0');
message.append(report.getNumericMessage().toLatin1());
message.append('\0');
m_udpSocket.writeDatagram(message.data(), message.size(),
QHostAddress(m_settings.m_udpAddress), m_settings.m_udpPort);
}