onBondRequest

open fun onBondRequest(peripheral: MockPeripheral): BondResult

Called when a client requests bonding with the mock peripheral.

By default, the request is rejected, as if the peripheral did not support bonding.

Return

The result of the bonding request, by default BondResult.Reject.

Parameters

peripheral

The peripheral the event is for. It can be used to simulate its behavior.