MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / hotpathRxDeviceData

Method hotpathRxDeviceData

app/src/Console/Handler.cpp:816–827  ·  view source on GitHub ↗

* @brief Routes incoming raw data to the per-device console buffer. */

Source from the content-addressed store, hash-verified

814 * @brief Routes incoming raw data to the per-device console buffer.
815 */
816void Console::Handler::hotpathRxDeviceData(int deviceId, const QByteArray& data)
817{
818 if (data.isEmpty())
819 return;
820
821 const auto str = dataToString(data);
822 if (str.isEmpty())
823 return;
824
825 const auto processed = appendToDevice(deviceId, str, showTimestamp());
826 Q_EMIT deviceDataReady(deviceId, processed);
827}
828
829/**
830 * @brief Echoes sent data to the console (legacy overload for device 0).

Callers 1

onRawDataReceivedMethod · 0.80

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected