Skip to content

Commit 98682c1

Browse files
author
Patricio Vargas
committed
images for readme
1 parent d72180a commit 98682c1

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ This is a simple sample app demostrating the usage of the [Web NFC API](https://
66

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

9+
![alt nfc tag](scs.png)
10+
11+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
12+
913
### WTF is NFC?
1014

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

1317
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.
1418

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

1721
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.
1822

@@ -59,12 +63,12 @@ const scan = async() =>
5963

6064
console.log("Scan started successfully.");
6165
ndef.onreadingerror = () => {
62-
console.log("Cannot read data from the NFC tag. Try another one?");
66+
console.log("Cannot read data from the NFC tag. Try another one?");
6367
};
6468

6569
ndef.onreading = (event) => {
66-
console.log("NDEF message read.");
67-
onReading(event); //Find function below
70+
console.log("NDEF message read.");
71+
onReading(event); //Find function below
6872
};
6973
} catch (error) {
7074
console.log(`Error! Scan failed to start: ${error}.`);

nfc.jpg

736 KB
Loading

scs.png

31.6 KB
Loading

0 commit comments

Comments
 (0)