This works, thanks
However, is there any more efficient (in terms of complexity) way to do it?, perhaps just clearing the buffer or something like that, because readAll() is taking about 5 seconds to get done (because of low data transfer rate)
BTW, I tried closing and opening the port each time receiveByte() is invoked but I get a wrong value...
Bookmarks