Byte array to char !

That code says that if 1 byte is available, read 40 bytes. Not the best way to go.

The serial input basics tutorial shows how to receive serial data into a string (null terminated character array).

1 Like