void parse()
{
while(rfid.available()){
if(rfid.read() == 255){
for(int i=1;i<11;i++){
Str1[i]= rfid.read();
}
}
}
}
My understanding is that if there is input to the software serial rfid it will check to see if the input is equal to 255. As for why, i'm not sure.
If it is equal to 255 it will fire up the for loop (which will run 10 times) and build the array Str1 up with 10 digits/characters.
Is that right?
Like I said, I'm not sure what the 255 is about.