-
Notifications
You must be signed in to change notification settings - Fork 69
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
Conversation
<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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
straightforward was fine
https://www.merriam-webster.com/dictionary/straightforward
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo?
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)
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