1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

Morse Decoder: implement UDP

This commit is contained in:
f4exb
2024-05-21 01:08:10 +02:00
parent eb877fa7c7
commit 254b100373
2 changed files with 13 additions and 1 deletions
+11 -1
View File
@@ -262,7 +262,17 @@ bool MorseDecoder::handleMessage(const Message& cmd)
getMessageQueueToGUI()->push(msg);
}
// TODO: send via UDP
// Send via UDP
if (m_settings.m_udpEnabled)
{
QByteArray bytes = MorseDecoderSettings::formatText(report.getText()).toUtf8();
m_udpSocket.writeDatagram(
bytes,
bytes.size(),
QHostAddress(m_settings.m_udpAddress), m_settings.m_udpPort
);
}
return true;
}
else