Closed Veronesi closed 1 year ago
Hi! I'm having a problem with writing with MifareClassic.
async function writeClassic(){ await NfcManager.requestTechnology(NfcTech.MifareClassic); const SECTOR_TO_WRTIE = 1; const TEXT_TO_WRITE = 'test'; const MIFARE_BLOCK_SIZE = 16; const data: Array<number> = Array(MIFARE_BLOCK_SIZE).fill(0); const block = await NfcManager.mifareClassicHandlerAndroid.mifareClassicSectorToBlock(SECTOR_TO_WRTIE); for ( let i = 0; i < MIFARE_BLOCK_SIZE && index < TEXT_TO_WRITE.length; i++ ) { data[i] = TEXT_TO_WRITE.charCodeAt(i); } await NfcManager.mifareClassicHandlerAndroid.mifareClassicWriteBlock(block, data); }
it throws me the following error
[Error: mifareClassicWriteBlock fail: TAG_LOST]
nfc information:
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
Hi! I'm having a problem with writing with MifareClassic.
it throws me the following error
nfc information: