我有一个Haljia Pn532和一个arduino nano,我想使用NFCSendTag函数通过windev移动应用发送密码。
我使用代码
tag is nfcTag
url is nfcData
url..Type = nfcText
url..Content = "1234"
Add(tag..Data, url)
IF NFCSendTag(tag) = False THEN
Error("Failure writing onto the NFC tag.", ErrorInfo())
END
(此处为https://help.windev.com/?1000020418的示例)
此应用的android API lvl为24(牛轧糖7.0)
我使用库https://github.com/Seeed-Studio/PN532使用SPI连接
我尝试使用示例p2p_with_ndef_library
当我尝试从android获取消息(如数据为空)时,我从pn532收到消息“失败”。
使用p2p的NFCSendTag是否有可能不发送数据?
谢谢