Skip to main content

BleSignalStrength

Enum Class: BleSignalStrength

Represents signal strength based on The Received Signal Strength Indicator (RSSI)

Properties​

name: String​

The name of the enum constant, for example STRONG.

ordinal: Int​

The position of the enum constant in its declaration, starting at 0.

Signal Levels​

UNKNOWN​

UNKNOWN

Initial state. BleListener.onSignalStrength never reports it: it always reports STRONG, GOOD or WEAK.

STRONG​

STRONG

Signal to terminal is strong

GOOD​

GOOD

Signal to terminal is good

WEAK​

WEAK

Signal to terminal is weak

Functions​

valueOf(value: String): BleSignalStrength​

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values(): Array<BleSignalStrength>​

Returns an array containing the constants of this enum type, in the order they're declared.

RSSI Values​

The SDK derives the signal strength from the RSSI (Received Signal Strength Indicator) it reads from the connection, and passes both to BleListener.onSignalStrength(strength, rssiValue) about every 7 seconds while connected:

  • STRONG: RSSI above -60 dBm
  • GOOD: RSSI from -89 to -60 dBm
  • WEAK: RSSI of -90 dBm or below

See Also​