我目前正在 ISO 14443-3A NFC 卡上运行测试,我正在使用 flutter 的 pub.dev 中的
nfc_manger
,我如何从 ISO 14443-3A 等标签以及支持的任何其他卡读取数据设备,这是我下面的代码
if (ndef == null ||
felica == null ||
iso7816 == null ||
iso15693 == null ||
miFare == null ||
nfca == null ||
nfcb == null ||
nfcf == null ||
nfcv == null ||
isoDep == null ||
miFareClassic == null ||
miFareUltralight == null ||
ndefFormattable == null) {
error = 'Tag is not Ndef Readable, switch to QR option';
NfcManager.instance.stopSession(errorMessage: error);
return;
}
// Handle NFC commands according to which NFC tag is been read
if (ndef != null) {
// read data from NDEF
handleNDEF(ndef);
} else if (felica != null) {
// read Data from FeliCa Tag using commands
handleFelica(felica);
} else if (iso7816 != null) {
// read Data from Iso7816 Tag using commands
// handleIso7816(iso7816);
} else if (iso15693 != null) {
// read Data from Iso15693 Tag using commands
} else if (miFare != null) {
// read Data from MiFare Tag using commands
} else if (nfca != null) {
// read data from NfcA Tag using commands
} else if (nfcb != null) {
// read data from NfcB Tag using commands
} else if (nfcf != null) {
// read data from NfcF Tag using commands
} else if (nfcv != null) {
// read data from NfcV Tag using commands
} else if (isoDep != null) {
// read data from IsoDep Tag using commands
} else if (miFareClassic != null) {
// read data from MiFareClassic Tag using commands
} else if (miFareUltralight != null) {
// read data from MifareUltraLight using commmands
} else if (ndefFormattable != null) {
// Convert data into NDEF format and read data from NdefFormatable using NDEF
}
我只需要知道如何使用
handleIso7816
方法处理标签从购物车读取数据,我尝试阅读文档,但这还不够,我得到了方法 .transcieve()
但我不明白它是如何实现的作品