onConnectionChanged

var onConnectionChanged: (BluetoothPeripheral, Boolean) -> Unit?

Callback invoked when a device connection state changes. The Boolean parameter is true if connected, false otherwise.