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)