I am trying to receive a string of data using the serin command on the Atom Pro on the bot board, but I’m having major problems. I am able to read in data sent as characters only. For example:
serin S_IN,i57600,[str rbuffer\8]
Works just fine, but I want to read in a formatted string that looks like this:
$100,200,300
and I have looked at the examples in the basic manual, and to extract the three numbers I should be able to do something like the following:
serin S_IN,i57600,[char1, dec3 var1\3, char2, dec3 var2\3, char 3, dec3 var3\3, newline]
but this will not compile, unless I change it to:
serin S_IN,i57600,[char1, dec3 var1, char2, dec3 var2, char 3, dec3 var3, newline]
which always fails or timeouts when reading in the string. What is the deal?