Appearance
PeripheralManager
Manager handling CoreBluetooth
interaction
swift
class PeripheralManager
Overview
This Manager will regularly claim the CBCentralManagerDelegate
for the Provided CBCentralManager
and the CBPeripheralDelegate
for each CBPeripheral
used for a BTWire He will forward this information to BTWires he constructed to provide them with:
connection state inforamtion
data form the read charakteristik
a way to write data into the write charakteristic
Initializers
init()
swift
init()
init(cbManager:)
swift
init(cbManager: CBCentralManager)
Instance Properties
cbManagerState
swift
var cbManagerState: AnyPublisher<CBManagerState, Never>
Published information about the CBManagerState
delegate
swift
var delegate: SharedCBDiscoveryDelegate?
Shared Delegate used by share results of CBCentralManagerDelegate
method centralManager(_:didDiscover:advertisementData:rssi:) with FlakeBTScanner
Instance Methods
constructWire(with:)
swift
func constructWire(with: CBPeripheral) -> BTWire
Constructor for BTWire