Start/Stop Server - Honeywell 8680i User Manual

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

Advertisement

RESULT_ERR_PARAMETER_WIFI if the lpszBindAddress is null or usPort is out of
range (1 - 65535).
RESULT_ERR_SERVICE_ALREDAY_STARTED if the TCP server has already started.
RESULT_ERR_NOT_INITIALIZE if the SDK is not successfully initialized.
RESULT_ERR_EXCEPTION_WIFI if the server is not successfully started.
StopServer
Stops the TCP socket server and releases the connections.
Note: This API waits until all jobs are done then returns. It must be called in a thread
because this may take some time and can block the main thread.
Parameters
N.A.
Return Value
RESULT_SUCCESS_WIFI if the TCP server is closed successfully.
RESULT_ERR_SERVICE_NOT_STARTED if the TCP server is not started.
RESULT_ERR_NOT_INITIALIZE if the SDK is not successfully initialized.
RESULT_ERR_EXCEPTION_WIFI if the server is not successfully stopped.
RegCallbacksWithWifi
This API allows the application to register a callback to receive the events from the
SDK such as bar code responses, disconnect events, button press events, and
other responses from the scanner.
Parameters
OnConnectCallback connCb
The function pointer that receives the connect events from the SDK layer.
OnDisconnectCallback disconnCb
The function pointer that receives disconnect events from the SDK layer.
OnDecodeCallback decCb
8680i WiFi SDK User Guide
typedef void (*OnConnectCallback)(const ScannerInfo_WiFi
&info);
typedef void (*OnDisconnectCallback)(const CLIENT_CONNID
connID);
11

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents