onConnectionRequest

open fun onConnectionRequest(preferredPhy: List<Phy>): ConnectionResult

Called when a connection request is made to the mock peripheral.

By default, the connection request is accepted.

Return

The result of the connection request, by default ConnectionResult.Accept.

Parameters

preferredPhy

The list of PHYs preferred by the central.