Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top