simulateDisconnection

Simulates a situation when the peripheral is gracefully disconnecting from the device.

The PeripheralSpecEventHandler.onConnectionLost will receive a call with reason DisconnectionReason.TerminateLocalHost.

Connected clients will immediately be notified about the disconnection with reason ConnectionState.Disconnected.Reason.TerminatePeerUser.