Hi, I try to read the number of byte available to read with the following command
Most of the time, it is working great, it is returning the good amount or none when not available yet which is what I’m expecting.
but 1/10 of the time, it is returning a negative number
I just don’t understand that and I don’t know how to manage it. Is somebody have an explanation and what could be done about it?