Android Question NFC: Read Oyster Card

KMatle

Expert
Licensed User
Longtime User
I want to read an Oyster NFC Card (travelcard used in London for busses and the tube).

What I get is this (based on Erel's NFC example):

B4X:
android.nfc.action.TAG_DISCOVERED 'good
Techs: [android.nfc.tech.IsoDep, android.nfc.tech.NfcA, android.nfc.tech.NdefFormatable] 'the tech's
Connected: true 'good
044D3F62444680 '= ID 'yep
Reading completed. Success=false, Flag=0 'meh
** Activity (main) Resume **

B4X:
Private Sub ReadNdef
    TagTech.RunAsync("ReadNdef", "getNdefMessage", Null, 0)
End Sub

Can anyone give an example how to read the data based on the techs? "ReadNdef" does (for sure) not work here. I'm not sure which method/parms for "android.nfc.tech.IsoDep" is needed (or for the other 2)
 
Top