In my current code i am trying to write 1 byte and read the same byte from serial buffer stream. I am using the boost api for writing and reading.
for connection: