Skip to main content

BleSignalStrength

Enum Class: BleSignalStrength

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

Properties

name: String

Represents as a callback to show the result from the BleTerminal process.

ordinal: Int

Represents current connected terminalId.

Signal Levels

UNKNOWN

UNKNOWN

Initial state

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 signal strength enum is derived from RSSI (Received Signal Strength Indicator) values:

  • STRONG: Typically RSSI > -60 dBm
  • GOOD: Typically RSSI between -60 to -70 dBm
  • WEAK: Typically RSSI < -70 dBm
  • UNKNOWN: No RSSI data available yet

See Also