Owner's manual
Table Of Contents
- Section 1. MagTekSCRA Class
- Methods
- openDevice:
- closeDevice:
- isDeviceConnected
- clearBuffers
- getMaskedTracks
- getTrack1
- getTrack2
- getTrack3
- getTrack1Masked
- getTrack2Masked
- getTrack3Masked
- getMagnePrint
- getMagnePrintStatus
- getDeviceSerial
- getSessionID
- getKSN
- getTagValue
- getMagTekDeviceSerial
- getFirmware
- getDeviceName
- getDeviceCaps
- getDeviceStatus
- getTLVVersion
- getDevicePartNumber
- sendCommandToDevice
- getCapMSR
- getCapTracks
- getCapMagStripeEncryption
- setDeviceProtocolString
- listenForEvents
- getDeviceType
- getCardPANLength
- getResponseData
- getCardName
- getCardIIN
- getCardLast4
- getCardExpDate
- getCardServiceCode
- getCardStatus
- getTrackDecodeStatus
- getResponseType
- setDeviceType
- isDeviceOpened
- getBatteryLevel
- getSDKVersion
- getOperationStatus
- setConfigurationParams
- Notification
- Enum
- Methods
- Section 2. Commands
- Section 3. Code Examples
24
NSLog(@"TRANS_STATUS_ERROR");
break;
default:
break;
}
}
Get Connection Status Of Reader:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(devConnStatusChange)
name:@"devConnectionNotification" object:nil];
- (void)devConnStatusChange
{
BOOL isDeviceConnected = [self.mtSCRALib isDeviceConnected];
if (isDeviceConnected)
{
self.deviceStatus.text = @"Device Connected";
}
else
{
self.deviceStatus.text = @"Device Disconnected";
}
}