Skip to content

Commit

Permalink
images for readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Patricio Vargas committed Aug 12, 2021
1 parent d72180a commit 98682c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ This is a simple sample app demostrating the usage of the [Web NFC API](https://

This is the [sample app](https://react-nfc-90146.web.app/) in action.

![alt nfc tag](scs.png)

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

### WTF is NFC?

NFC stands for **_Near-Field Communication_**. NFC is a set of communication protocols for communication between two electronic devices.

Electromagnetic fields can be used to transmit data or induce electrical currents in a receiving device. Passive NFC devices draw power from the fields produced by active devices, but the range is short.

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
![alt NFC Tag](nfc.jpg)

You can buy NFC Tags on [Amazon](https://www.amazon.com/gp/product/B0727NYX3B/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1). These tags can contain up to 540KB of info.

Expand Down Expand Up @@ -59,12 +63,12 @@ const scan = async() =>

console.log("Scan started successfully.");
ndef.onreadingerror = () => {
console.log("Cannot read data from the NFC tag. Try another one?");
console.log("Cannot read data from the NFC tag. Try another one?");
};

ndef.onreading = (event) => {
console.log("NDEF message read.");
onReading(event); //Find function below
console.log("NDEF message read.");
onReading(event); //Find function below
};
} catch (error) {
console.log(`Error! Scan failed to start: ${error}.`);
Expand Down
Binary file added nfc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added scs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 98682c1

Please sign in to comment.