Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29497

Android NFC: How transceive method working with memory?

$
0
0

I have ntag213. I'm trying to understand how work blocks, sections of memory of my tag.I found project https://github.com/lepunk/react-native-nfc-demo/blob/master/RNNFCDemo/App.jsbut cannot understand what is agruments for transceive method:

let text = this.state.text;        let fullLength = text.length + 7;        let payloadLength = text.length + 3;        let cmd = Platform.OS === 'ios' ? NfcManager.sendMifareCommandIOS : NfcManager.transceive;        resp = await cmd([0xA2, 0x04, 0x03, fullLength, 0xD1, 0x01]); // 0x0C is the length of the entry with all the fluff (bytes + 7)        resp = await cmd([0xA2, 0x05, payloadLength, 0x54, 0x02, 0x65]); // 0x54 = T = Text block, 0x08 = length of string in bytes + 3

What it the arguments in every cmd?


Viewing all articles
Browse latest Browse all 29497

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>