You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any idea what I'm doing wrong? I have it working on another instance fine.. It's as if it';s using the nfc-pcsc but I removed all other copies and only have one copy on this box -_-
I will leave you to fix how you like but basically my fix is just changing the line to
if (reader.name.toLowerCase().indexOf('acr12') !== -1) {
The whole ACR12x family uses pretty much the same API so it should be a safe bet.. Your call tho :)
Also when you try to use the .led method and it hasn't detected ACR122 or whatever then it should notify the developer to explain why it isn't working so they don't have to do all the leg work I had to today =)X x
Tnx!
The text was updated successfully, but these errors were encountered:
JohnMcLear
changed the title
setBuzzerOutput is not a function? Wut?!
setBuzzerOutput is not a function. Includes debug & suggested fix
Jan 14, 2019
Installed using
npm install nfc-pcsc --save
I get:Any idea what I'm doing wrong? I have it working on another instance fine.. It's as if it';s using the nfc-pcsc but I removed all other copies and only have one copy on this box -_-
I can see the function in the source code..
Doing
npm install
in the node_modules/nfc-pcsc folder thennpm run example-led
Returns:
So yeah.. confused!
Turns out it might be a hardware thing
Works..
Doesn't..
Note the name: 'ACS ACR1252 Dual Reader [ACR1252 Dual Reader SAM] 01 00',
https://github.com/pokusew/nfc-pcsc/blob/master/src/NFC.js#L42 is to blame..
I will leave you to fix how you like but basically my fix is just changing the line to
if (reader.name.toLowerCase().indexOf('acr12') !== -1) {
The whole ACR12x family uses pretty much the same API so it should be a safe bet.. Your call tho :)
Also when you try to use the .led method and it hasn't detected ACR122 or whatever then it should notify the developer to explain why it isn't working so they don't have to do all the leg work I had to today =)X x
Tnx!
The text was updated successfully, but these errors were encountered: