Some arg Fun in Rust. (0.38.1)
This commit is contained in:
parent
87833b0c1e
commit
543483041b
16 changed files with 167 additions and 66 deletions
|
|
@ -33,9 +33,9 @@ if len(readers) > 0
|
|||
|
||||
if h != 0
|
||||
// Sample APDU: SELECT MF (00 A4 00 00 02 3F 00)
|
||||
resp = pc.transmit_hex(h, "00A40000023F00")
|
||||
// Print hex data and SW
|
||||
print("resp.data_hex=" + resp["data_hex"])
|
||||
// Use the safe convenience transmitter which returns a map {data, sw1, sw2, code}
|
||||
resp = pc.transmit("00A40000023F00")
|
||||
print("resp.data.len=" + to_string(len(resp["data"])) + " bytes")
|
||||
print("resp.sw1=" + to_string(resp["sw1"]) + " sw2=" + to_string(resp["sw2"]) + " code=" + to_string(resp["code"]))
|
||||
|
||||
_ = pc.disconnect(h)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue