Closed gitchander closed 1 year ago
I had the same problem lately; unfortunately this repo here does not seem to be actively maintained.
However, I think some of the forks implement useful extensions. For example https://github.com/urbanminded/serial seems to have what we're looking for in 59f58d4f6eb90c61c481fff26c5040f2bf2a43d7
Thanks for comment!
If serial port not return bytes: for Linux it returns EOF; for windows it returns readed 0 bytes error is nil. If I used bufio reader ReadByte() - operation is blocking because serial Read retuns -> (0 , nil). Here need a ReadTimeout error.