onConnectionLost
Called when the connection is lost.
Parameters
peripheral
The peripheral the event is for. It can be used to simulate its behavior.
reason
The reason for the disconnection.
Called when the connection is lost.
The peripheral the event is for. It can be used to simulate its behavior.
The reason for the disconnection.