Overview
Retrieves whether the active RFID reader is docked on its charging or communication cradle, using srfidGetCradleStatus.
Details
The getCradleStatus:aStatusMessage: method retrieves whether the active RFID reader is currently docked on its charging or communication cradle. The status is a value of the SRFID_CRADLE_STATUS type, which the SDK defines. The values are:
SRFID_CRADLE_STATUS_OFF(0): the device is not on the cradleSRFID_CRADLE_STATUS_ON(1): the device is on the cradle
-(SRFID_RESULT)getCradleStatus:(SRFID_CRADLE_STATUS*)cradleStatus aStatusMessage:(NSString**)statusMessage {
SRFID_RESULT srfid_result = SRFID_RESULT_FAILURE;
srfid_result = [apiInstance srfidGetCradleStatus:readerID aCradleStatus:cradleStatus aStatusMessage:statusMessage];
if (srfid_result == SRFID_RESULT_SUCCESS) {
NSLog(@"Get Cradle Status Success");
}else {
NSLog(@" Get Cradle Status Failure");
}
return srfid_result;
}