Skip to content

Commit

Permalink
v1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mastashake08 committed Oct 23, 2023
1 parent c6e61d1 commit 5a6837d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions classes/NFCManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export class NFCManager extends WebIOT {

this.nfc = new NDEFReader()
}
async readNFCData (readCb, errorCb = (event) => console.log(event)) {
this.nfc.onreading = readCb()
async readNFCData (readCb = (event) => {console.log(event)}, errorCb = (event) => console.log(event)) {
this.nfc.onreading = readCb
await this.nfc.scan()
}
async writeNFCData (records, errorCb = (event) => console.log(event)) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mastashake08/web-iot",
"version": "1.3.2",
"version": "1.3.3",
"description": "Connect to your IoT devices via usb, serial, NFC or Serial",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 5a6837d

Please sign in to comment.