EM220II
Rev. 1.00
- 32 -
Mobile Printer
iOS SDK API Reference Guide
5-3-22 msrReadTrack
Read MSR data. It is MSR read mode. If BXLMSR_DATAEMPTY is returned, card is not
read in MSR. Scan the card with MSR again or use the „msrReadCancel‟ method to
cancel the read mode.
[Function prototype]
- (long)msrReadTrack:(NSData **)data1
data2:(NSData **)data2
data3:(NSData **)data3
[Parameters]
data1
Read MSR Data Track 1 and save it.
data2
Read MSR Data Track 2 and save it.
data3
Read MSR Data Track 3 and save it.
[Return Value]
Refer to 2-16 Result Code
[Discussion]
All of data1, data2, data3 carry unallocated NSData *data, and NSData object is
allocated inside the method.
The allocated data1, data2, data3 are auto release ones and users do not have to
release them explicitly.
[Availability]
SDK 1.0.0 and later
5-3-23 msrGetTrack
Read MSR data. It is MSR read mode. If BXLMSR_DATAEMPTY is returned, card is not
read in MSR.
Scan the card with MSR again or use the msrReadCancel method to cancel the read
mode.
[Function prototype]
- (long)msrGetTrack:(int)track
response:(NSData **)response
[Parameters]
track
MSR Data Track number 1 ~ 3
response
MSR Data Track value
[Return Value]
Refer to 2-16 Result Code