onReset

open fun onReset(peripheral: MockPeripheral)

Called when the peripheral is reset.

This method is called when user calls PeripheralSpec.simulateReset.

All existing connections will time out. onConnectionLost will NOT be called.

Parameters

peripheral

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