문제

We're creating a simple android app for reading and writing to NFC tags, focused mostly on the NDEF technology. We're able to write an NDEF message with an NDEF record containing a URI.

However, we also need to write such message that turns the NFC tag into a Wi-Fi switch - reading it would cause Wi-Fi to turn on/off.

What kind of data do we need to write to the NDEF record to achieve this? Is it some sort of binary data, or a special "syatem" URI that android recognizes and takes appropriate action?

도움이 되었습니까?

해결책

NFC/NDEF itself can't do that. You'll need a receiving app which does this for you; and in that case, you can define the message type and format yourself.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top