mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-31 17:42:55 +08:00
Automatically add new line char in MQTT frames
This commit is contained in:
parent
4de0d2f9a4
commit
dd7f2e593e
@ -547,6 +547,10 @@ void Client::onMessageReceived(const QMQTT::Message &message)
|
|||||||
if (topic() != mtopic)
|
if (topic() != mtopic)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Let IO manager process incoming data <todo>
|
// Add EOL character
|
||||||
|
if (!mpayld.endsWith('\n'))
|
||||||
|
mpayld.append('\n');
|
||||||
|
|
||||||
|
// Let IO manager process incoming data
|
||||||
IO::Manager::getInstance()->processPayload(mpayld);
|
IO::Manager::getInstance()->processPayload(mpayld);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user