Download Print this page

Property Ksktscanpropidbluetoothaddress; Property Ksktscanpropidstatisticcountersdevice - Socket ScanAPI Reference Manual

Advertisement

Socket ScanAPI Reference

14.24 Property kSktScanPropIdBluetoothAddress

This property can be used to retrieve the device Bluetooth address.
The Bluetooth device address is returned in an array of 6 bytes.
NOTE: The 7 series v3.1 devices don't support this property. An
ESKT_NOTSUPPORTED error will be returned in the Get Complete event for
these devices.
In Java only, ScanAPI provides a static function to convert this Bluetooth address
array of 6 bytes into a string. It can be found in SktJava.helper. This function is
formatBluetoothAddress.
Parameter type
Get
None
Version
ScanAPI Interface Version

14.25 Property kSktScanPropIdStatisticCountersDevice

This property retrieves the statistic counters of the device.
The statistic counters can be different from one device type to another. The first 2
bytes of the array returned in the Get Complete message indicates the number of
counters returned in the array. Each counter is composed by 2 long integers (4
bytes), the first long integer is the counter identifier and the second long integer is
the actual counter value. This array can be described as follow:
Name
Number of Bytes
Count
2 bytes
Counter ID
4 bytes
Counter
4 bytes
Counter ID
4 bytes
Counter
4 bytes
...
...
The following IDs are defined as described below:
Name
kSktScanCounterUnknown
kSktScanCounterConnect
© 2013 Socket Mobile, Inc.
Get Complete
Array
Description
Number of ID/Counter in the array
Represents the counter ID (see below)
Represents the actual counter
Represents the counter ID (see below)
Represents the actual counter
...
Set
Not applicable
1.0.0 or higher
Description
Counter is unknown. This might be
because a newer version of the
device has implemented new
counter.
Counter represents the number of
times a connection has been made.
Set Complete
Not applicable
108/152

Advertisement

loading
Need help?

Need help?

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