let adapter = wx.getNFCAdapter()
console.log('adapter',adapter)
adapter.startDiscovery()
var that = this
adapter.startDiscovery({
complete: function(cp){
console.log("startDiscovery",cp)
}
})
adapter.onDiscovered(function callback(res){
console.log('onDiscovered',res)
let ndef = adapter.getNdef(res)
console.log('adapter.getNdef(res)',ndef)
ndef.connect({success: function(ress) {
console.log("ress", ress)
}, fail: function(err){
console.log("ndef", err)
}, complete: function(cp){
console.log("ndefcp",cp)
}})
返回如下错误
ndef {errMsg: "connect:fail:not supported"}
ndefcp {errMsg: "connect:fail:not supported"}
请问这个是什么原因导致的呢
如返回信息所示,该设备不支持nfc。