dataBuffer = dataBuffer.right(indexOfFrame+frameLen);//remove processed data from the buffer
dataBuffer = dataBuffer.right(indexOfFrame+frameLen);//remove processed data from the buffer
To copy to clipboard, switch view to plain text mode
I have not tested my code. This is just an example of how something should look.
I have always 11 bytes and the beginning AAAA (working perfectly)
but I have still the problem about losing data, its normal to losing data (because somtimes the nombre of bytes availables is more then 22 for exemple --> so I lost one frame) ??
Bookmarks