Saving serial information into an array


i working on rfid reader program , receiving tag information @ serial monitor

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

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor