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

Remove ignoreRead and add info on how to implement manually #570

Closed
wants to merge 1 commit into from

Conversation

kenchris
Copy link
Contributor

@kenchris kenchris commented Apr 30, 2020

Also add more info about how writing works and an example on how to timeout a write, as well as how to construct a method that allows reading just one tag.


Preview | Diff

<section><h3>Write a text string</h3>
<p>
Writing a text string to an NFC tag is straightforward.
Writing a text string to an NFC tag is straight-forward.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I need to fix in more places

@@ -1180,7 +1322,7 @@ <h4>
};

// Stop listening to NDEF messages after 3s.
setTimeout(() => controller.abort(), 3000);
setTimeout(() => controller.abort(), 3_000);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If polling is not initiated already by first calling `scan()`,
then the `write()` method will initiate it temporarily until a
tag was found and read, and writing to it was attempted.
</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not explicitly said in the write() steps, but it's indeed implicitly assumed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not said in write steps either which might be the reason why we have the read after writing if scan is not called

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also we should probably talk about the polling and NFC Read operation as used in the NFC specs (at least tnep)

@kenchris kenchris closed this May 1, 2020
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.

2 participants