Convenience listener to know if a connect call was successful or not.
This listener will be called when
A) the
BleDevice
enters the
BleDeviceState.INITIALIZED
state -- indicating the device is ready
to handle any bluetooth operations.
or
B) the
BleDevice
failed to connect. Note that this may fire multiple times. Basically, it's called anytime
a connect failure happens. In this case, you should check
DeviceConnectListener.ConnectEvent.isRetrying()
to see if SweetBlue is
still trying to get the
BleDevice
connected.