Quote Originally Posted by Lesiok View Post
Why are You clearing serial port buffers in MyObject::toReadThePort() ???? This is the place where you lose data.
Because, i'm reading the data before clearing the serial port. Data is keep coming consistently if i don't clear port there , the other incoming bytes will not going to take a place in buffer.(I thought like that actually.) I think i'm getting all data in buffer then clearing it. If it is wrong where should i clear my serial port for not losing data ?

Thanks for the quick reply by the way.