BleSignal
Stay organized with collections
Save and categorize content based on your preferences.
Represents properties of the BLE signal associated with a Message
.
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
Constant Value:
-2147483648
Public Methods
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eBleSignal\u003c/code\u003e provides information about the Bluetooth Low Energy (BLE) signal associated with a Nearby Message.\u003c/p\u003e\n"],["\u003cp\u003eIt includes the received signal strength (RSSI) and the transmission power level.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetRssi()\u003c/code\u003e returns the RSSI value in dBm, indicating the signal strength.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetTxPower()\u003c/code\u003e returns the transmission power level, also in dBm, or \u003ccode\u003eUNKNOWN_TX_POWER\u003c/code\u003e if unavailable.\u003c/p\u003e\n"]]],[],null,["# BleSignal\n\npublic interface **BleSignal** \nRepresents properties of the BLE signal associated with a [Message](/android/reference/com/google/android/gms/nearby/messages/Message). \n\n### Constant Summary\n\n|-----|----------------------------------------------------------------------------------------------------------|-----------------------------------|\n| int | [UNKNOWN_TX_POWER](/android/reference/com/google/android/gms/nearby/messages/BleSignal#UNKNOWN_TX_POWER) | Unknown transmission power level. |\n\n### Public Method Summary\n\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract int | [getRssi](/android/reference/com/google/android/gms/nearby/messages/BleSignal#getRssi())() Returns the received signal strength indicator (RSSI) in dBm. |\n| abstract int | [getTxPower](/android/reference/com/google/android/gms/nearby/messages/BleSignal#getTxPower())() Returns the transmission power level at 1 meter, in dBm. |\n\nConstants\n---------\n\n#### public static final int\n**UNKNOWN_TX_POWER**\n\nUnknown transmission power level. See [getTxPower()](/android/reference/com/google/android/gms/nearby/messages/BleSignal#getTxPower()). \nConstant Value: -2147483648\n\nPublic Methods\n--------------\n\n#### public abstract int **getRssi** ()\n\nReturns the received signal strength indicator (RSSI) in dBm. The valid range is\n\\[-127, 127\\], inclusive.\n\nThis is a weighted average of sightings, with later sightings having more\nweight. \n\n#### public abstract int **getTxPower** ()\n\nReturns the transmission power level at 1 meter, in dBm. Returns [UNKNOWN_TX_POWER](/android/reference/com/google/android/gms/nearby/messages/BleSignal#UNKNOWN_TX_POWER) if the advertiser did not report its transmission\npower."]]