A
A
AlexSer2019-11-17 16:08:05
Qt
AlexSer, 2019-11-17 16:08:05

How to catch an empty string when transmitting through COM port?

Good afternoon ... The device transmits messages in pieces, an empty line passes between full messages ... Question: how to catch it in order to split the packet?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2019-11-17
@firedragon

The string ends with \r \r\n \n, \0
Or it is a fixed length.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question