ConnectionEvent
public enum ConnectionEvent
An enum representing the connection event that has occurred
-
Peripheral is connected but not ready to receive command
Declaration
Swift
case connected(CBPeripheral)
-
Peripheral is connected after a disconnection automatically but not ready to receive command
Declaration
Swift
case autoConnected(CBPeripheral)
-
Peripheral is ready to receive command
Declaration
Swift
case ready(CBPeripheral)
-
Peripheral is not ready probaly due to some unexpected disconnection
Declaration
Swift
case notReady(CBPeripheral, error: LittleBluetoothError?)
-
Process of connection has failed
Declaration
Swift
case connectionFailed(CBPeripheral, error: LittleBluetoothError?)
-
Peripheral has been disconnected, if it was unexpected a
LittleBluetoothError
is returnedDeclaration
Swift
case disconnected(CBPeripheral, error: LittleBluetoothError?)