mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-29 19:28:47 -05:00
Merge pull request #1929 from srcejon/freq_scanner
Pager Demod: Add null terminator in UDP packets
This commit is contained in:
commit
5ab23dac45
@ -180,10 +180,15 @@ bool PagerDemod::handleMessage(const Message& cmd)
|
|||||||
{
|
{
|
||||||
QByteArray message;
|
QByteArray message;
|
||||||
message.append(report.getDateTime().toString().toLatin1());
|
message.append(report.getDateTime().toString().toLatin1());
|
||||||
|
message.append('\0');
|
||||||
message.append(QString::number(report.getAddress()).toLatin1());
|
message.append(QString::number(report.getAddress()).toLatin1());
|
||||||
|
message.append('\0');
|
||||||
message.append(QString::number(report.getFunctionBits()).toLatin1());
|
message.append(QString::number(report.getFunctionBits()).toLatin1());
|
||||||
|
message.append('\0');
|
||||||
message.append(report.getAlphaMessage().toLatin1());
|
message.append(report.getAlphaMessage().toLatin1());
|
||||||
|
message.append('\0');
|
||||||
message.append(report.getNumericMessage().toLatin1());
|
message.append(report.getNumericMessage().toLatin1());
|
||||||
|
message.append('\0');
|
||||||
m_udpSocket.writeDatagram(message.data(), message.size(),
|
m_udpSocket.writeDatagram(message.data(), message.size(),
|
||||||
QHostAddress(m_settings.m_udpAddress), m_settings.m_udpPort);
|
QHostAddress(m_settings.m_udpAddress), m_settings.m_udpPort);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user