Socket ScanAPI Reference
Parameter type
Get
None
Version
ScanAPI Interface Version
14.32 Property kSktScanPropIdPowerStateDevice
This property retrieves the power state of a connected device.
The power state is described in a double word and can be retrieved using a helper
macro that is defined in the paragraph regarding the Power Event notification.
The power states can be described as follow:
Name
kSktScanPowerStatusUnknown
kSktScanPowerStatusOnBattery 0x01
kSktScanPowerStatusOnCradle
kSktScanPowerStatusOnAc
C/C++:
The helper macro and the constant definition can be found in the SktScanPropIds.h
file.
Java:
The helper macro can be found in com.SocketMobile.ScanAPI.SktScan.helper and the
constant definition can be found in
com.SocketMobile.ScanAPI.ISktScanProperty.values.powerStates.
C#:
The helper macro can be found in ScanAPI.SktScan.helper and the constant
definition can be found in ScanAPI.ISktScanProperty.values.powerStates.
Objective C:
The helper macro and the constant definition can be found in the SktScanPropIds.h
file.
Parameter type
© 2013 Socket Mobile, Inc.
Get Complete
Byte
Value
0x00
0x02
0x04
Set
Not applicable
1.0.0 or higher
Description
The power state is unknown. Most
likely a device not supporting this
feature such as earlier version of CHS
(v3.1)
The device is currently running on
battery.
The device is currently running from
the cradle.
The device is currently plugged to the
AC power.
Set Complete
Not applicable
118/152
Need help?
Do you have a question about the ScanAPI and is the answer not in the manual?