Connection/Disconnection - Honeywell 8680i User Manual

Wearable mini mobile computer
Hide thumbs Also See for 8680i:
Table of Contents

Advertisement

}

Connection/Disconnection

Handle Connection Event
// Store the scanner information when it connects to the server in the callback
// function
void OnConnect(const ScannerInfo_WiFi &info)
{
}
Handle Disconnection Event
// Remove the scanner information when it disconnects to the server in the
// callback function
void OnDisconnect(const unsigned long connID)
{
}
8680i WiFi SDK User Guide
MessageBox("Server stop.");
// Note: The info passed from callback may be released by SDK,
// so we should deep copy it and store locally.
ScannerInfo_WiFi scanner;
memcpy(&scanner, &info, sizeof(ScannerInfo_WiFi));
m_vcScanners.push(scanner);
// Enable to receive button pressed callback events once connect to the
// scanner. Otherwise you can invoke this API wherever as you need.
EnableNfyBtnPressWithWifi(scanner.ConnID, true);
for(ScannerIT it = m_vcScanners.begin(); it != m_vcScanners.end(); ++it)
{
if((*it)->connID == scannerID)
{
it
= m_vcScanners.erase(it);
break;
}
}
27

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents