Skip to content

Commit

Permalink
Merge pull request #356 from JohnMcLear/patch-2
Browse files Browse the repository at this point in the history
arrayBufferToString doesn't exist
  • Loading branch information
don authored Oct 18, 2019
2 parents 247e86d + 4666161 commit 580be43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -778,13 +778,13 @@ See Android's documentation [IsoDep.transceive()](https://developer.android.com/

// Promise style
nfc.transceive('90 5A 00 00 03 AA AA AA 00').then(
response => console.log(util.arrayBufferToString(response)),
response => console.log(util.arrayBufferToHexString(response)),
error => console.log('Error selecting DESFire application')
)

// async await
const response = await nfc.transceive('90 5A 00 00 03 AA AA AA 00');
console.log('response =',util.arrayBufferToString(response));
console.log('response =',util.arrayBufferToHexString(response));

### Supported Platforms

Expand Down

0 comments on commit 580be43

Please sign in to comment.