Closed BlueAndi closed 5 years ago
Hi, what kind of Stream did you use where you encountered this infinite loop?
Stream documentation says: "Returns: the first byte of incoming data available (or -1 if no data is available)"
I'm afraid if I merge this it won't eat-up any remaining null characters.
I use the lib together with https://github.com/UIPEthernet/UIPEthernet So I guess the read method provided by UIPClient returns 0 instead of -1.
I try to dig down, thanks.
Hi, what kind of Stream did you use where you encountered this infinite loop?
Stream documentation says: "Returns: the first byte of incoming data available (or -1 if no data is available)"
I'm afraid if I merge this it won't eat-up any remaining null characters.