Socket ScanAPI Reference
Parameter type
Get
None
Version
ScanAPI Interface Version
14.31 Property kSktScanPropIdConnectReasonDevice
This property retrieves the information on how the device is connected to the host.
The connect reasons are summarized in the following table:
Name
kSktScanConnectReasonUnknown
kSktScanConnectReasonPowerOn
kSktScanConnectReasonBarcode
kSktScanConnectReasonUserAction
kSktScanConnectReasonHostChange 0x04
kSktScanConnectReasonRetry
C/C++:
The helper macro and the constant definition can be found in the SktScanPropIds.h
file.
Java:
The constant definitions can be found in
com.SocketMobile.ScanAPI.ISktScanProperty.values.connectReason.
C#:
The constant definitions can be found in
ScanAPI.ISktScanProperty.values.connectReason.
Objective C:
The helper macro and the constant definition can be found in the SktScanPropIds.h
file.
NOTE:
This feature is only available in the 7x series, an ESKT_NOTSUPPORTED error is
returned for the other series.
© 2013 Socket Mobile, Inc.
Get Complete
Ulong
Value Description
0x00
0x01
0x02
0x03
0x05
Set
Ulong
1.0.0 or higher
Unknown reason
Device powered on
Device scanned a connect barcode
User press a button while Device was
in idle mode
A host has changed the Device Role
and the new Role has been activated.
The Device was disconnected
accidently and has reconnected.
Set Complete
None
117/152
Need help?
Do you have a question about the ScanAPI and is the answer not in the manual?