]]
local reader14443A = require('read14a')
+local reader14443B = require('read14b')
local cmds = require('commands')
-local TIMEOUT = 1000
+local TIMEOUT = 2000
local function sendToDevice(command, ignoreresponse)
core.clearCommandBuffer()
-- This will be moved to a separate 14443B library
-------------------------------------------------------
-local function read14443B()
- return nil, "Not implemented"
-end
local reader14443B = {
- read = read14443B
+ read = reader14443B.read14443b()
}
-
-
-------------------------------------------------------
-- This will be moved to a separate 1593 library
-------------------------------------------------------
return nil, "15693 sysinfo: no answer"
end
- local count,cmd,recvLen,arg1,arg2 = bin.unpack('LLLL',result)
+ local count,cmd,recvlen,arg1,arg2 = bin.unpack('LLLL',result)
data = string.sub(result,recvlen)
info, err = parse15693(data)