NFC接口 如何联接卡片?

adapter.onDiscovered(function(res){,console.log("发现设备", res);,const { techs, messages } = res;,if(techs.includes(adapter.tech.nfcA)){,console.log("发现NFC-A卡");,const nfcA = adapter.getNfcA();,app.nfcA = nfcA;,nfcA.connect({,success: function(res){,console.log("设备已连接", res);,console.log("发送测试数据", res);,nfcA.transceive({,data:new Uint8Array(),,success: function(res){,console.log("发送数据成功, 接收数据如下:", res);,},,fail: function(err){,console.log("发送数据失败", err);,},}),},,fail: function(err){,console.log("设备联接错误", err);,},});,},});,报错信息:,{errMsg: "connect:fail:NFC tag has not been discovered", errCode: 13013},
,,
已邀请:

要回复问题请先登录注册