Use the protocol parameter in CardReader.transmit
- We were simply hard-coding the T=0 protocol.
This commit is contained in:
@@ -51,7 +51,7 @@ Example
|
||||
console.log(err);
|
||||
} else {
|
||||
console.log('Protocol(', this.name, '):', protocol);
|
||||
reader.transmit(new Buffer([0x00, 0xB0, 0x00, 0x00, 0x20]), 40, 1, function(err, data) {
|
||||
reader.transmit(new Buffer([0x00, 0xB0, 0x00, 0x00, 0x20]), 40, protocol, function(err, data) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user