Overview
Terminates the communication session with an active scanner, using sbtTerminateCommunicationSession.
Details
Requests to terminate communication session with a particular active scanner
/// This method will initiate the disconnection with particular scanner
/// @param scannerId Scanner id of the disconnecting the scanner
- (void)disconnect:(int)scannerId
{
if (sdkApi != nil)
{
SBT_RESULT res = [sdkApi sbtTerminateCommunicationSession:scannerId];
if (res == SBT_RESULT_FAILURE) {
NSLog(@"Scanner disconnect failed");
}
}
}