Saving serial information into an array
i working on rfid reader program , receiving tag information @ serial monitor
how save array ? code wrote got many errors in information saved @ tag array.
this tag array display.
please advise
code: [select]
+ 0.start tag:
--------------
command return: 32121e3002a0aa085150251190a538
--------------
how save array ? code wrote got many errors in information saved @ tag array.
code: [select]
while(myserial.available())
{
serial.print(myserial.read(),hex);
delay(2);
for (int i=0; i<=29; i++)
{tag[i]=myserial.read();
serial.print(tag[i],hex);
delay(2); }
}
this tag array display.
code: [select]
command return: 32121e3002ffffffa0ffffffaa0ffffff851502511ffffff90ffffffa538ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
please advise
code: [select]
t i=0; i<=29; i++)
{tag[i]=myserial.read();
serial.print(tag[i],hex);
delay(2); }
}
you have info saved in array called tag. more need? problem?
Arduino Forum > Using Arduino > Programming Questions > Saving serial information into an array
arduino
Comments
Post a Comment