ProximityChanged

class ProximityChanged<P : Peripheral<*, *>>(peripheral: P, val previousProximity: ProximityChanged.Proximity, val proximity: ProximityChanged.Proximity) : RangeEvent<P>

An event indicating that the proximity of the peripheral has changed.

Note, that the proximity is estimated based on the received signal strength indicator (RSSI) and is only approximate. RSSI depends on many factors, like the distance, the obstacles, the antenna orientation, and the environment.

Constructors

Link copied to clipboard
constructor(peripheral: P, previousProximity: ProximityChanged.Proximity, proximity: ProximityChanged.Proximity)

Types

Link copied to clipboard

Proximity to the peripheral.

Properties

Link copied to clipboard

The peripheral.

Link copied to clipboard

The previous proximity.

Link copied to clipboard

The new recorded proximity.