Methods, Opendevice, Closedevice – MagTek SCRA Reader User Manual

Page 9: Isdeviceconnected, Clearbuffers

Advertising
background image

3

Methods

openDevice:

This function opens the reader.

- (

BOOL

) openDevice

Parameters


Return Value

YES if the device is opened successfully. Otherwise, return NO.


closeDevice:

This function close the reader.

- (

BOOL

) closeDevice


Parameters

Return Value

YES if the device is closed successfully. Otherwise, return NO.

isDeviceConnected

This function retrieves the connection status of the reader.

- (

BOOL

) isDeviceConnected

Parameters

Return Value

YES if the device is connected. Otherwise, return NO.

clearBuffers

Clears all the buffer that is stored during card swipe or command response.

- (

void

) clearBuffers

Parameters

Return Value

Advertising