simulateProximityChange

Simulates a change in the proximity of the peripheral.

When the peripheral is moved out of range, the connected clients will get a disconnection event with reason ConnectionState.Disconnected.Reason.LinkLoss after the supervision timeout.

Parameters

proximity

The new proximity. Use Proximity.OUT_OF_RANGE to simulate leaving the range.

See also