Serin and qualifiers

PieM

Senior Member
Hi all,

Picaxe manual says : SERIN pin,baudmode,(qualifier,qualifier...),{#}variable,{#}variable...

With serin, I receive 30 bytes in a long string , as "ABC ...V.........
But I need 2 qualifiers, one on ABC, and an other one on V.
Serin pin,baudmode,("ABC","V"), ...... , is not working.
I have to write:
serin pin,baudmode,("ABC")
serin pin,baudmode,("V"), .......
what's the matter ?
 

hippy

Technical Support
Staff member
Within qualifiers the comma acts as a concatenation, so "ABC","V" is the same as "ABCV", and the PICAXE is looking for the qualifier in its entirety and exact sequential order, no intervening 'other characters'.

You need to use the form you have with two SERIN's to be able to match the first qualifier, then skip characters to match the next.
 
Top