-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ISO14443aTarget marshalling problem? #4
Comments
Sounds like a bug in my code to me. Let me check please. |
Casting an
Where
Please tell me if this solved your problem and then close the issue. |
Thanks for the quick response. I tried your suggestion, but it won't compile. See snippet and error message below. Seems that nfc.ISO14443aTarget should implement nfc.Target, but doesn't.
//does not compile: |
Sorry. Cast to |
That works! Thanks, and thanks very much for the lib. |
It was a pleasure to me. |
See https://gist.github.com/messinm/7086bfce591bf6f1d554
Running under Ubuntu 14.04 64-bit, libnfc 1.7.0
mifare target gives the following from printing Target received from InitiatorListPassiveTargets:
ISO/IEC 14443A (106 kbps) target:
ATQA (SENS_RES): 00 04
UID (NFCID1): 3c be 90 75
SAK (SEL_RES): 08
Fingerprinting based on MIFARE type Identification Procedure:
Other possible matches based on ATQA & SAK values:
Then attempting marshalling to ISO14443aTarget, I get the following:
Am I doing something wrong in the marshalling code? Or is this a bug in Go NFC lib or libnfc?
The text was updated successfully, but these errors were encountered: