Open Pantau123 opened 4 years ago
Are you expecting null bytes or whitespaces in your input. Maybe have a look at #162.
No i don't expect a null byte but it can be a whitespace.
But the problem is where does the leading '\0' come from?
with noskipws i receive the data with <<
Hi @Pantau123 , did that resolve this issue for you?
Hi, i use the main branch version of Seriallib with SerialStream. I can not read characters with << from the SerialStream. I can only read the function SerialStream.read(char*,streamsize), but everytime i receive a leading '\0' and i have to create a char array with receivedbytes +1. Can anybody help me? Bests Pantau File main.cpp (sender)
File main.cpp (receiver)