Serial Input Basics

Qiking:

strtokIndx = strtok(receivedBytes,",");

saying that it's an invalid conversion from byte to char. What should I do?

In my examples the data is put into a char array - receivedChars[]. I'm guessing that is what strtok() is intended for. I don't know whether a cast would be suitable.

I don't understand your question about clearing the input buffer - what exactly do you not understand.

...R