LittleBluetoothConfiguration
public struct LittleBluetoothConfiguration
Configuration object that must be passed during the LittleBlueTooth initialization
-
CBCentralManageroptions dictionary for instance the restore identifier, thay are the same requested forCBCentralManagerDeclaration
Swift
public var centralManagerOptions: [String : Any]? -
CBCentralManagerqueueDeclaration
Swift
public var centralManagerQueue: DispatchQueue? -
This handler must be used to handle connection process after a disconnession. You can inspect the error and decide if an automatic connection is necessary. If you return
truethe connection process will start, once the peripheral has been found a connection will be established. If you returnfalsethe system will not try to establish a connection Connection process will remain active also in background if the app has the right permission, to cancel just calldisconnect. When a connection will be established an.autoConnected(PeripheralIdentifier)event will be streamed to theconnectionEventPublisherDeclaration
Swift
public var autoconnectionHandler: AutoconnectionHandler? -
Enable logging, log is made using os_log and it exposes some information even in release configuration
Declaration
Swift
public var isLogEnabled: Bool -
Undocumented
Declaration
Swift
public init()
View on GitHub
LittleBluetoothConfiguration Structure Reference