框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本 小程序 Bug IsoDep 微信安卓客户端 7.0.15 2.11.2 代码片段链接:https://developers.weixin.qq.com/s/e568dzm87xij
微信小程序NFC无法发送数据?微信版本7.0.16 小程序基础库版本2.11.2IsoDep.transceive(Object object)发送数据返回{"errMsg":"transceive:ok","data":{}},这个应该表示成功了,但是data没有任何返回信息,官方文档是否可以完善一下
2020-07-03微信官方的文档是否能完善一下,实在不敢恭维! 我调用了IsoDep.transceive方法,返回{"errMsg":"transceive:ok","data":{}},提示成功了,啥数据也没返回
NFC无法发送数据let str = "10001"; let buf = new ArrayBuffer(str.length); // 每个字符占用2个字节 let bufView = new Uint8Array(buf); for (var i=0, strLen=str.length; i<strLen; i++) { bufView[i] = str.charCodeAt(i); } console.log(buf); nfcA.transceive({ data:buf, success:function(res){ console.log("transceive success"); console.log(res); }, fail:function(res){ console.log("transceive fail"); console.log(res); }, complete:function(res){ console.log("transceive complete"); console.log(res); } }); https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/NfcB.transceive.html 错误信息:{errMsg: "transceive:fail:system internal error", errCode: 13017} NFC的文档是否完善一下,完全靠自己摸索
2020-07-03