Download Print this page

Socket ScanAPI Reference Manual page 68

Advertisement

Socket ScanAPI Reference
Macro name
SKTBATTERY_GETCURLEVEL(batteryLevel)
SKTBATTERY_GETMINLEVEL(batteryLevel)
SKTBATTERY_GETMAXLEVEL(batteryLevel)
C/C++:
The helper macro can be found in the SktScanPropIds.h file
Java:
The helper macro can be found in com.SocketMobile.ScanAPI.SktScan.helper.
C#:
The helper macro can be found in ScanAPI.SktScan.helper.
Objective C:
The helper macro can be found in the SktScanPropIds.h file.
Event Data Type: kSktScanEventDataTypeUlong.
See also:
Property kSktScanPropIdBatteryLevelDevice
11.6.6
Listener Started Event
When ScanAPI starts and is initialized, a listener started event is sent indicating the
listener is running and listening on the communication ports.
If the ScanAPI communication port configuration is modified, the listener will
restart in order to retrieve and apply the new configuration. During this process, the
listener sends a Listener Started event.
If for some reason the configuration is incorrect, or none of the communication
ports can be used, the listener will then wait for a new configuration after reporting
this error condition.
The application UI can then report a configuration issue that needs to be addressed.
As soon as a new configuration is applied, the application can refresh its UI status
when it receives the Listener Started event.
© 2013 Socket Mobile, Inc.
Description
Returns the Byte 1 of the double
word batteryLevel that contains
the current battery level within the
Min Level and the Max Level
values.
Returns the Byte 2 of the double
word batteryLevel that contains
the level minimum.
Returns the Byte 3 of the double
word batteryLevel that contains
the level maximum.
68/152

Advertisement

loading
Need help?

Need help?

Do you have a question about the ScanAPI and is the answer not in the manual?