AI-generated Key Takeaways
-
BleSignal represents properties of the BLE signal associated with a Message.
-
It provides methods to get the received signal strength indicator (RSSI) and transmission power level (TxPower).
-
UNKNOWN_TX_POWER is a constant indicating an unknown transmission power level.
Represents properties of the BLE signal associated with a Message.
Constant Summary
| int | UNKNOWN_TX_POWER | Unknown transmission power level. |
Public Method Summary
| abstract int |
getRssi()
Returns the received signal strength indicator (RSSI) in dBm.
|
| abstract int |
getTxPower()
Returns the transmission power level at 1 meter, in dBm.
|
Constants
public static final int UNKNOWN_TX_POWER
Unknown transmission power level. See
getTxPower().
Public Methods
public abstract int getRssi ()
Returns the received signal strength indicator (RSSI) in dBm. The valid range is [-127, 127], inclusive.
This is a weighted average of sightings, with later sightings having more weight.
public abstract int getTxPower ()
Returns the transmission power level at 1 meter, in dBm. Returns
UNKNOWN_TX_POWER if the advertiser did not report its transmission
power.