Method: CTAPI::Cardterminal#select_file
- Defined in:
- lib/ctapi.rb
#select_file(fid = [ 0x3f, 0 ]) ⇒ Object
Sends the select file byte sequence to the card with a default value for the master file. Returns true if the response was successful, false otherwise.
144 145 146 147 148 |
# File 'lib/ctapi.rb', line 144 def select_file(fid = [ 0x3f, 0 ]) select_file = [ 0, 0xa4, 0, 0, 0x02, *fid ] response = data(@slot, HOST, select_file) response.successful? end |