public class Rssi
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Rssi.RssiMeasurementType
The possible measurement types for RSSI data.
|
Modifier and Type | Field and Description |
---|---|
static int |
MAX_RSSI_VALUE
Maximum RSSI value
|
static int |
MIN_RSSI_VALUE
Minimum RSSI value
|
static int |
OFFSET_MEASUREMENT_TYPE
The message content offset the the measurement type
|
static int |
OFFSET_RSSI_VALUE
The message content offset the the RSSI value
|
static int |
OFFSET_THRESHOLD_CONFIG
The message content offset the the RSSI value
|
static int |
SIZE_MEASUREMENT_TYPE
The number of bytes used for the measurement type
|
static int |
SIZE_RSSI
The number of bytes used for the RSSI information
|
static int |
SIZE_RSSI_VALUE
The number of bytes used for the RSSI value
|
static int |
SIZE_THRESHOLD_CONFIG
The number of bytes used for the threshold configuration
|
static int |
THRESHOLD_CONFIG_OFF
The threshold configuration value when off
|
Constructor and Description |
---|
Rssi(byte[] messageContent,
int startOffset)
Constructs RSSI information from the message content.
|
Rssi(int measurementType,
int rssiValue,
int thresholdConfigDB)
Constructs Rssi with the given values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Rssi.RssiMeasurementType |
getMeasurementType()
Gets the measurement type received in the extended message.
|
int |
getRawMeasurementType()
Gets the raw value for the measurement type.
|
int |
getRssiValue()
Gets the Received Signal Strength Indicator value.
|
int |
getThresholdConfigDB()
Gets the threshold configuration value, the power level of the threshold
bin configured through proximity search.
|
int |
hashCode() |
java.lang.String |
toString() |
public static final int MIN_RSSI_VALUE
public static final int MAX_RSSI_VALUE
public static final int SIZE_MEASUREMENT_TYPE
public static final int SIZE_RSSI_VALUE
public static final int SIZE_THRESHOLD_CONFIG
public static final int SIZE_RSSI
public static final int OFFSET_MEASUREMENT_TYPE
public static final int OFFSET_RSSI_VALUE
public static final int OFFSET_THRESHOLD_CONFIG
public static final int THRESHOLD_CONFIG_OFF
public Rssi(byte[] messageContent, int startOffset)
messageContent
- The byte array of the message content.startOffset
- The offset to RSSI informationpublic Rssi(int measurementType, int rssiValue, int thresholdConfigDB)
measurementType
- The received measurement type.rssiValue
- The received RSSI value.thresholdConfigDB
- The received threshold configuration value.public int getRawMeasurementType()
getMeasurementType()
.public Rssi.RssiMeasurementType getMeasurementType()
public int getRssiValue()
getMeasurementType()
.public int getThresholdConfigDB()
getMeasurementType()
.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.