-
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
Join Reader and Writer objects #561
Comments
On Android, it is not possible to select one tag among several tags. There should be only one in the RF field. |
I vote for calling the combined object |
I need to get hand on the new NFC TNEP spec, but it looks like they used poller device (vs tag device) but I need to confirm |
I agree |
I checked the new spec and it seems that the Poller thing was just what Nordic named it in their API.
|
Ergo what about Edit. const writer = new NDEFWriter();
writer.write(
"Hello World"
).then(() => {
console.log("Message written.");
}).catch(error => {
console.log(`Write failed :-( try again: ${error}.`);
}); If we used const reader = new NDEFReader();
reader.write(
"Hello World"
).then(() => {
console.log("Message written.");
}).catch(error => {
console.log(`Write failed :-( try again: ${error}.`);
}); I know we could call it const ndef = new NFCDevice();
ndef.write(
"Hello World"
).then(() => {
console.log("Message written.");
}).catch(error => {
console.log(`Write failed :-( try again: ${error}.`);
}); |
I'd be cautious about assuming that the existing API can be extended to support future technologies. Keeping the API focused on NDEF allows us to only consider a subset of all possible NFC interactions and built the best API for that. |
Discussed with Kenneth that we'd likely stick with |
Signed-off-by: Zoltan Kis <zoltan.kis@intel.com>
Fixed on branch: 00509fc |
Merged upstream |
I take the blame for this. It originally seemed like a good idea with separate objects, but I am getting more and more convinced that it was a bad idea.
Suggested name
NDEFPoller
orNDEFPollerDevice
The text was updated successfully, but these errors were encountered: