Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off NTAG by default, adjust ultralight adapter #27

Merged
merged 5 commits into from
Nov 11, 2023

Conversation

skjolber
Copy link
Contributor

@skjolber skjolber commented Nov 7, 2023

Works reading Mifare Ultralight. NTAG support is spotty, depends on the reader.

Example app reads all the ultralight sectors and print them to the log.


// XXX for write testing
boolean write = false;
if(write) {
    Random random = new Random();
    byte[] payload = new byte[4];
    random.nextBytes(payload);
    mifareUltralight.writePage(length - 1, payload);
    LOGGER.info("Wrote " + ByteArrayHexStringConverter.toHexString(payload));
}

@skjolber skjolber merged commit 2fcbec5 into master Nov 11, 2023
1 check passed
@skjolber skjolber deleted the adjustMifareUltralight branch November 11, 2023 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant