I thought about StreamReader.readexactly(1), i.e. reading a single character and catching the delimiter, but with large packet it works slowly.
Example packet "b'BE0003123123E6'" means: 7E: is "delimiter" 0003: is "lenght of packet" 123123: data E6: checksum.
When a single packet comes, it's OK. The problem is when I have several packages at once E.g:
Code: Select all