i need a method like below
private byte GetByte(int decValue)
{
//convert decValue to byte
}
Ex: if i give 10.. the function shud return 0X0A..wic shud be in byte format...
i know its simple...but i cant get my head work around it...
the application wic i'm working on has an RFID reader... the int values are the page(sector) number of the Tag, specified by the user... the reader manual specifically says we must send the value (0x0A) in byte format thru the serialport... ""Send an ‘R’ (=0x52) command to the reader to read pages 0‐3 from the tag’s memory: 0x52 0x00"" i hav to send 0x0A in byte format... but i cant ask client to learn hex n then tell them to enter 0x0A instead of 10 can i?
i've a function wic gives string "0x0A"... but i want it in byte format....